On Wednesday 27 February 2008 00:49:34 Greg Freemyer wrote:
All,
I have a small fileserver that has been running 10.3 for a couple of months. I have easy physical access, but I normally ssh into it.
Today I tried and it is failing to accept me. sshd is not even running on the server!!!
When I try to start it I get:
# rcsshd start Starting SSH daemonDisabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. startproc: exit status of parent of /usr/sbin/sshd: 1 failed
I assume I need to create a host key, but I don't know where it is kept on SuSE (10.3)
Explicit (cut & paste) instructions appreciated.
What does "ls -l /etc/ssh/" look like? The script /etc/init.d/sshd will automatically create new keys if they aren't there, so one way to get them to appear would be to simply delete the files, assuming they have become corrupt But I wonder if perhaps it's a permissions thing. ssh won't work with keys unless they, and the directories they're in, have sufficiently restrictive permissions. So check those
FYI: Glad this is not a remote server. I would not be happy if I had this happen in that situation.
It rarely happens by itself. Something must have been done to that machine Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org