Neither could I. I did do the key regeneration previously, but without the '' and the -N. Please explain those flags, since I cannot look at a manpage right now...
Main Topics
Browse All TopicsWhen I attempt to start sshd, I get the following debug output.
debug2: read_server_config: filename /etc/ssh/sshd_config
debug1: sshd version OpenSSH_3.8.1p1 Debian-8.sarge.4
Could not load host key: /etc/ssh/ssh_host_key
debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Could not load host key: /etc/ssh/ssh_host_rsa_key
debug3: Not a RSA1 key file /etc/ssh/ssh_host_dsa_key.
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
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.
I have set permissions several times. I can post my sshd_config also if needed.
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
So you installed a new version, but you're running the old one? Seems like a roundabout way to solve the problem. I'm sure the 4.0 keys were generated with blank passphrases. You'd never use a passphrase for a server key because otherwise sshd wouldn't work after an unattended boot. Who would want that?
Business Accounts
Answer for Membership
by: TimEliseoPosted on 2005-05-18 at 20:05:39ID: 14033239
You could try regenerating all of your server keys (it can't hurt, unless you have clients that expect the old keys):
ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ''
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
Note that '' is two single quotes, not a double quote.
The error about looking for RSA1 keys in the RSA and DSA files seems strange though. If regenerating keys doesn't work you should post your sshd_config.
This is probably a PAQ, but I couldn't find it...