I encountered a problem setting up an account for auto login via ssh. I set up my keys properly, all the permissions on everything was correct. Still, when I ssh'd to the account it always asked for my password.
To debug the problem I restarted the ssh daemon on the server computer with the -ddd option, which put it into maximum debug mode. This showed me that the ssh server daemon was looking for the authorized keys in /.ssh/authorized_keys. This is incorrect, there is not /.ssh direcotry. It should e looking in ~/.sshd.
So, I edited /etc/ssh/sshd_config and corrected the line:
AuthorizedKeysFile /.ssh/authorized_keys
to be
AuthorizedKeysFile %h/.ssh/authorized_key
That corrected the problem. Now I can auto login with ssh.
This is obviously a sshd installation bug.
Hope this helps someone! If so, leave a message!

No comments:
Post a Comment