1

I read an article and found it very useful: http://www.howtoforge.com/ssh_key_based_logins_putty

I made two key pairs for root and the other user. But it only works for root

When it comes to the other one, the server shows:

Using username "theotheruser".
Server refused our key
theotheruser@mydomain.com's password:
AGamePlayer
  • 7,605

1 Answers1

3

Check permissions for the ~/.ssh directory for user and all files in it. The ~/.ssh directory should have permissions 700, while files should have permissions 600

Joseph R.
  • 39,549
  • 1
    Also check the permissions on all directories in the path. They should be writable only by the owner. – BillThor Aug 18 '13 at 14:39