I've created a user called "user". I want this user to be able to login to ssh using an SSH Key.
I have done the following:
- created a folder called
/home/userand chmoded it to 700
- created a file called
/home/user/.ssh/and chmoded it to 600
- added the public key i generated with puttygen into the
- restarted ssh
Now when I try to login to hostname.com with the private key generated with puttygen I get that error
server refused our key and
disconnected: no supported authentication methods available (server sent: publickey)
When I did this for the user root it worked fine, what am I doing wrong here?