Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: SSH issues< Next Oldest | Next Newest >
spanners Offline





Group: Members
Posts: 9
Joined: Jan. 2006
Posted: Feb. 24 2008,18:13 QUOTE

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
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Feb. 24 2008,19:27 QUOTE

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
Back to top
Profile PM WEB 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Feb. 25 2008,02:40 QUOTE

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.
Back to top
Profile PM 
Jason W Offline





Group: Members
Posts: 260
Joined: Nov. 2006
Posted: Feb. 25 2008,05:37 QUOTE

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.
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Feb. 25 2008,06:21 QUOTE

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.
Back to top
Profile PM 
10 replies since Feb. 24 2008,18:13 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: SSH issues

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code