Networking :: SSH issues



Hi All
I'm using the DSL default OpenBSD SSH server and am having no luck getting my keys to work. I run the ssh-keygen application to create /etc/ssh/ssh_host_key, /etc/ssh/ssh_host_dsa_key and /etc/ssh/ssh_host_rsa_key and they are created with 600 permissions. However when start up sshd it then says it can't load the host keys, none are available and exits.
If I change the key permissions to 644 (or anything that gives group or user access) then sshd sees they are there but claims they are too open and it won't use them.
Please help!
John

I don't have any problems with password-less scp/ssh using DSL v4.2.5.
Mine are stored in /root/.ssh and were generated with
# ssh-keygen -t rsa


HTH

Quote (spanners @ Feb. 24 2008,13:13)
Hi All
I'm using the DSL default OpenBSD SSH server and am having no luck getting my keys to work. I run the ssh-keygen application to create /etc/ssh/ssh_host_key, /etc/ssh/ssh_host_dsa_key and /etc/ssh/ssh_host_rsa_key and they are created with 600 permissions. However when start up sshd it then says it can't load the host keys, none are available and exits.
If I change the key permissions to 644 (or anything that gives group or user access) then sshd sees they are there but claims they are too open and it won't use them.
Please help!
John

If I try "etc/init.d/ssh start" I get the same message:

Starting OpenBSD Secure Shell server: sshdCould 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.

Nevertheless, it's working, and I can scp to/from other computers. Perms are root,root.

jpeters,
 Did you star the /etc/init.d/ssh service with sudo or as root?  It tries to write to /etc so it must have root priviledges.

Quote (Jason W @ Feb. 25 2008,00:37)
jpeters,
 Did you star the /etc/init.d/ssh service with sudo or as root?  It tries to write to /etc so it must have root priviledges.

Yes, that was the problem.  I run that line from /opt/bootlocal where it's not necessary to be in root.  Thanks for pointing that out.
Next Page...
original here.