Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2001 13:41:31 -0600
From:      Stephen Montgomery-Smith <stephen@math.missouri.edu>
To:        Randy Bush <randy@psg.com>
Cc:        FreeBSD Stable <freebsd-stable@FreeBSD.ORG>
Subject:   Re: how to keygen /etc/ssh/*key*
Message-ID:  <3A8D826B.22699B4@math.missouri.edu>
References:  <E14Tqfm-0008aR-00@rip.psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I found out how to do this by looking in /etc/rc.network

/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key
/usr/bin/ssh-keygen -d -N "" -f /etc/ssh/ssh_host_dsa_key

Another cool way is to delete these files, and reboot the 
computer.


Randy Bush wrote:
> 
> how do i force regen of /etc/ssh/ host key files?
> 
> -rw-------  1 root  wheel   668 Feb 16 10:43 ssh_host_dsa_key
> -rw-r--r--  1 root  wheel   602 Feb 16 10:43 ssh_host_dsa_key.pub
> -rw-------  1 root  wheel   527 Feb 16 10:43 ssh_host_key
> -rw-r--r--  1 root  wheel   331 Feb 16 10:43 ssh_host_key.pub
> 
> randy
> 
> ps: deleting old ssh1 executables seems to have cleared up the x
>     forwarding issue.  <doh>
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message

-- 

Stephen Montgomery-Smith              stephen@math.missouri.edu
307 Math Science Building             stephen@showme.missouri.edu
Department of Mathematics             stephen@missouri.edu
University of Missouri-Columbia
Columbia, MO 65211
USA

Phone (573) 882 4540
Fax   (573) 882 1869

http://www.math.missouri.edu/~stephen


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A8D826B.22699B4>