On Sat, 2003-10-18 at 12:35, Derek Jennings wrote: > On Saturday 18 Oct 2003 2:25 pm, Thinker wrote: > > Sorry, I forgot to copy you on this. > > > > -----Forwarded Message----- > > From: Thinker <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: Re: [newbie] ssh on Mandrake 9.0 > > Date: Fri, 17 Oct 2003 20:41:41 -0400 > > > > On Fri, 2003-10-17 at 13:38, Derek Jennings wrote: > > > On Friday 17 Oct 2003 5:48 pm, Thinker wrote: > > > > From what I can tell, ssh is installed. I just cant figure out how to > > > > start it. > > > > > > > > In the Mandrake Control Center->System->Services I see the listing for > > > > sshd and sshd-xinetd. > > > > > > > > sshd is supposed to start on boot but it has a status of 'stopped' and > > > > when I try to start it I get this message: > > > > > > > > Stopping sshd: [FAILED] > > > > Generating SSH1 RSA Host key: [FAILED] > > > > ------------- > > > > Is there something that I am missing or another way to start ssh on the > > > > machine? > > > > > > > > -=Thinker > > > > > > In a root terminal type > > > sshd -dd > > > > > > ssh will run in foreground and will print verbose messages about why it > > > will not start. > > > > > > Copy the messages in a post + I can tell you what is wrong > > > > ---------------begin error output--------------------- > > debug2: read_server_config: filename /etc/ssh/ssh_config > > debig1: sshd version OpenSSH_3.6.1p2 > > Could not load host key: /etc/ssh/ssh_host_key > > Could not load host key: /etc/ssh/ssh_host_rsa_key > > Could not load host key: /etc/ssh/ssh_host_dsa_key > > Disabling protocol version 1. Could not load host key > > Disabling protocol version 2. Could not load host key > > sshd: no hostkeys available -- exiting > > > > ---------------end error output---------------------- > > OK So for some reason when the open-ssh package was installed it failed to > create a host key. > > You did install a Mandrake RPM did you? It is part of the rpm install process > to create a key. > > You can do it by hand easily enough > As root > > ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -C '' -N '' > (Note: that is two single quote characters. Not 1 double quote )
I typed this one and got the message: bash: ssh-keygen: command not found Is there a simpler way to do this? or rather, is there a way to reinstall whatever I have missing using the CD's? > > chmod 600 /etc/ssh/ssh_host_rsa_key > chmod 644 /etc/ssh/ssh_host_rsa_key.pub > > ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -C '' -N '' > chmod 600 /etc/ssh/ssh_host_dsa_key > chmod 644 /etc/ssh/ssh_host_dsa_key.pub > > If those commands do not work take a look at the permissions of /etc/ssh > > derek
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com