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
[email protected]'s password:
AGamePlayer
  • 7,415
  • 16
  • 46
  • 55

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.
  • 38,849
  • 7
  • 107
  • 143
  • 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