Page 1 of 1

ssh login without typing password

Posted: 18 Aug 2007, 05:13
by msx
Hi! i log in very often on bubba, and i'd like not to type the password each time.
i tried to arrange ssh in that way, but i filed.

i copied my pc's /home/msx/.ssh/id_rsa.pub on bubba as /home/msx/.ssh/authorized_keys as i found on some howto..

what's wrong?

Posted: 18 Aug 2007, 06:22
by tor
Check your permissions on the authorized_keys file. And try to ssh with the -v option to get some info on what fails.

A tip is then to run ssh-agent on your workstation and use that to cache your keys. Don't add a key without a password.

/Tor

Posted: 19 Aug 2007, 04:33
by Ubi
Also, reading /var/log/messages will help you here.

Posted: 21 Aug 2007, 17:07
by msx
ok, the problem was with my ~/.ssh directory on bubba, which had the wrong permission (rwxr--r-- instead of rwx------).
i noticed it looking ad /ver/log/auth.log

thanks everybody :)