Subject: Re: Generating ssh_host_keys?
To: Todd McDaniel <lazymutt@mediaone.net>
From: Chris Pinnock <cjep@fawlty.net>
List: port-mac68k
Date: 11/17/2001 10:07:00
On Fri, Nov 16, 2001 at 10:28:48AM -0500, Todd McDaniel wrote:
> I'm back. Somewhere in all my tinkering netatalk started working. Now 
> I'm fighting with sshd. How do you generate the server host keys? 
> I've been trying to find the info on the net, but they all assume 
> you'll be make'ing from scratch. I tried to use ssy-keygen, but it 
> complains about the format.
> 
> The docs on the NetBSD site don't mention then, so it seems it should 
> generate them on it's own...

Hi Todd, 

For 1.5 onwards, if you have "sshd=YES" in your /etc/rc.conf file
then the host keys should automatically be generated on boot or by
running "/etc/rc.d/sshd start".

Alternatively, I think you can start key generation with 
	"/etc/rc.d/sshd keygen"

If you need to do it manually, something like:
	/usr/bin/ssh-keygen -b 1024 -f ssh_host_key -N ''
	/usr/bin/ssh-keygen -d -f ssh_host_dsa_key -N ''
should do the trick.

ciao, 
-- 
Chris