I have an ssh server installed on an Ubuntu 14.04 Server. I've noticed some strange things happening.
- If I have not logged in locally on the machine, it will not allow login remotely.
- If the server account I want to log in as remotely is not currently logged in on the server, I will receive the following error in putty:
Disconnected: No supported authentication methods available (server sent: publickey)
If I try connecting via the ssh command, I get the following:
Permission denied: publickey
I have set:
PasswordAuthentication no
in the /etc/ssh/sshd_config file, and I have added an extra line to the end of my authorized_keys
file. How can I solve this?