I have a server setup where I can ssh to from my mac. The setup is made with a trusted key and it works perfect. But whenever I reboot the server and I that try to login using ssh my_user@ip then it says: Permission denied (publickey). However if I physically go to the server and log in as my_user, then suddenly I can get remote access by ssh from my mac as well. What do I need to change in my setup?
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
|
|||||||
|
|
Well, the problem is that the key is stored in ~/.ssh/authorized_keys With an encrypted home, you can not log in with the key as your home directory is encrytped. Move authorized keys to somewhere else, I personally use /etc/ssh/.authorized_keys You then edit
Restart ssh server. See also: http://manpages.ubuntu.com/manpages/precise/en/man5/sshd_config.5.html |
|||||||||||
|