I keep getting the error "Server refused our key" when I try to log in using Putty.
Here is what I have done:
1) Created a new user, logged out and logged in with new user.
2) Created a directory ~/.ssh
3) chmod 700 ~/.ssh
4) ssh-keygen -t rsa -b 4096
5) cat id_rsa.pub >> authorized_keys
6) chmod 600 ~/.ssh/authorized_keys
7) /etc/ssh/sshd_config:
8) sudo service ssh restart
9) Transfered id_rsa to Windows, converted it to .ppk file to be used with Putty.
10) rm ida_rsa and id_rsa.pub
11) exit
12) Log back in only to see Server refused our key.
cat /var/log/auth.log
...
Jun 27 11:46:53 sfh sshd[16217]: pam_unix(sshd:session): session closed for user longhair
Jun 27 11:47:14 sfh sshd[16528]: Accepted password for longhair from x.x.x.x port xx ssh2
...
I couldn't find an answer after searching google for a couple of hours
Here is what I have done:
1) Created a new user, logged out and logged in with new user.
2) Created a directory ~/.ssh
3) chmod 700 ~/.ssh
4) ssh-keygen -t rsa -b 4096
5) cat id_rsa.pub >> authorized_keys
6) chmod 600 ~/.ssh/authorized_keys
7) /etc/ssh/sshd_config:
Code:
PermitRootLogin no
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile
%u/.ssh/authorized_keys
9) Transfered id_rsa to Windows, converted it to .ppk file to be used with Putty.
10) rm ida_rsa and id_rsa.pub
11) exit
12) Log back in only to see Server refused our key.
cat /var/log/auth.log
...
Jun 27 11:46:53 sfh sshd[16217]: pam_unix(sshd:session): session closed for user longhair
Jun 27 11:47:14 sfh sshd[16528]: Accepted password for longhair from x.x.x.x port xx ssh2
...
I couldn't find an answer after searching google for a couple of hours
