I'm trying to set up an SSH server. I put my public key in the authorized_keys file, made sure the permissions were correct, etc.
When I restart the server (really just Ubuntu 12.04 desktop) and I ssh to it without first logging in on the server, I am asked for a password. If, however, I log into the server, I can ssh without being asked for a password.
auth.log
has these lines when I have not logged in on the actual server:
mordor sshd[1605]: debug1: trying public key file /home/buck/.ssh/authorized_keys
mordor sshd[1605]: debug1: Could not open authorized keys '/home/buck/.ssh/authorized_keys': No such file or directory
/home
or/home/buck
is not mounted before the first user log in? Could you paste the output ofdf
?