From owner-freebsd-questions Thu Mar 22 14:17:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp015.mail.yahoo.com (smtp015.mail.yahoo.com [216.136.173.59]) by hub.freebsd.org (Postfix) with SMTP id 5010A37B71A for ; Thu, 22 Mar 2001 14:17:27 -0800 (PST) (envelope-from fbsdq@yahoo.com) Received: from h2.impactidealsolutions.com (HELO support10) (216.98.200.91) by smtp.mail.vip.sc5.yahoo.com with SMTP; 22 Mar 2001 22:17:27 -0000 X-Apparently-From: Message-Id: Date: Thu, 22 Mar 2001 15:19:05 -0700 X-Priority: 3 From: Peter X-Mailer: Mail Warrior To: wash@iconnect.co.ke Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Subject: Re:Host Keys - ssh Content-Type: Text/Plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8Bit X-Mailer-Version: v3.57 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG check out /etc/rc.network and search for ssh it has good examples in there, that is where I figured it out. ssh-keygen -b 1024 -f /etc/ssh_host_key -N "" ssh-keygen -d -f /etc/ssh_dsa_host_key -N "" The first line generates the protocol 1 key, the second generates the protocol 2 key. of course substitue the corect dir where those keys are supposed to go I think /etc/ssh/ is the place on FBSD [been using too much solaris lately]. On 03/22/2001 6:10:57 AM, Odhiambo Washington is quoted as saying: . . . .|How do I regenerate a host key? . . . .| . . . .|TIA . . . .| . . . .|-Wash . . . .| . . . .|-- . . . .|Odhiambo Washington Inter-Connect Ltd., . . . .|wash@iconnect.co.ke 5th Flr Furaha Plaza . . . .|Tel: 254 11 222604 Nkrumah Rd., . . . .|Fax: 254 11 222636 PO Box 83613 MOMBASA, KE. . . . .| . . . .|Mathematics transfigures the fortuitous concourse of atoms into the tracery of . . . .|the finger of God. -Herbert Westren Turnbull . . . .|(contributed by Chris Johnston) . . . .| . . . .|-----BEGIN PGP SIGNATURE----- . . . .|Version: GnuPG v1.0.4 (FreeBSD) . . . .|Comment: For info see http://www.gnupg.org . . . .| . . . .|iD8DBQE6ufnhA2k+MNyI/bERAoYHAJ4gBrA+WfFewotoEol+ps/sumKZHQCf c6JQ . . . .|MdNjrZPHNwGdJ3sl9mO0Sug= . . . .|=nlam . . . .|-----END PGP SIGNATURE----- . . . .| www.nul.cjb.net www.FreeBSD.org _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message