Fixes

For non root user Putty error: No supported authentication

If you ever face this error:

Putty error: No supported authentication methods available (server sent: publickey)

For a non-root user, but key works fine for a root user, try these steps to resolve:

  1. In /etc/ssh/sshd_config:

Comment out line:

AuthorizedKeysFile ~/.ssh/authorized_keys

So, it will use default location (same one)

Somehow, not commenting it, works for root but not for other users

2.

  • chmod 700 ~/.ssh
  • chmod 644 ~/.ssh/authorized_keys
  • chown $USER:$USER ~/.ssh -R
  • sudo service ssh restart

See this guide for steps on how to set it up correctly:

https://www.vultr.com/docs/using-your-ssh-key-to-login-to-non-root-users

Leave a Reply

Your email address will not be published. Required fields are marked *