[lug] sshd hostkeys

Mark Horning rip6 at rip6.net
Sun Jan 7 09:56:15 MST 2001


Justin wrote:
> 
> I need to find out how I can make sshd hostkeys by hand. I've been
> messing around for a while but haven't come up with anything. Anyone
> know how it's done? [This is to create the /etc/ssh/ssh_host_key(.pub)
> files]
> 
> Justin
> 
> -----
> glow at jackmoves.com
> www.jackmoves.com

Possibly try as root:
For RSA
/usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ""
For DSA
/usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N ""

-- 

Mark Horning
rip6 at rip6.net





More information about the LUG mailing list