From owner-freebsd-stable Fri Feb 16 11:41:36 2001 Delivered-To: freebsd-stable@freebsd.org Received: from math.missouri.edu (math.missouri.edu [128.206.49.180]) by hub.freebsd.org (Postfix) with ESMTP id 3D0AB37B401 for ; Fri, 16 Feb 2001 11:41:33 -0800 (PST) Received: from math.missouri.edu (stephen@cauchy.math.missouri.edu [128.206.49.166]) by math.missouri.edu (8.9.3/8.9.3) with ESMTP id NAA98789; Fri, 16 Feb 2001 13:41:31 -0600 (CST) (envelope-from stephen@math.missouri.edu) Message-ID: <3A8D826B.22699B4@math.missouri.edu> Date: Fri, 16 Feb 2001 13:41:31 -0600 From: Stephen Montgomery-Smith Organization: University of Missouri X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Randy Bush Cc: FreeBSD Stable Subject: Re: how to keygen /etc/ssh/*key* References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. > > 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