Hello,
When I try to start sshd I have the following message:
Starting of sshd:sshd: WARNING: Default configuration file "/etc/ssh2/sshd2_config" does not exist
: WARING: ssh_privkey_read from /etc/ssh2/hostkey failed
: FATAL: Unable to load any hostkeys
Before this message he starts creating the rsa and dsa keys in /etc/ssh
This problem started when I was trying to sync 2 servers with rsync. I used ssh_keygen to generate a key, and suddenly this event started.
How can I solv this problem? Or get rid of this ssh2 thing.
It is quit urgent because I cannot login this server from another server using ssh. Putty works fine using port 22. Why is this? Because putty is also using ssh I thought.
Thanks for your help
Roland
ssh2 starting problem
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: ssh2 starting problem
Where did you get the sshd?
The openssh-server that comes with CentOS 4 uses /etc/ssh not /etc/ssh2.
The openssh-server that comes with CentOS 4 uses /etc/ssh not /etc/ssh2.
Re: ssh2 starting problem
If you can connect with putty then at least one instance of SSHD is running. That's good.
It sounds as if you tried to copy/paste hostkey authentication config lines from some online tutorial but it's possible that the tutorial was not written for CentOS/RHEL. As Gerald Clark pointed out, your paths are probably wrong so you either need to edit the paths to reflect CentOS paths. You didn't actually install another SSHD did you?
It sounds as if you tried to copy/paste hostkey authentication config lines from some online tutorial but it's possible that the tutorial was not written for CentOS/RHEL. As Gerald Clark pointed out, your paths are probably wrong so you either need to edit the paths to reflect CentOS paths. You didn't actually install another SSHD did you?