th3ant
February 7th, 2013, 04:01 PM
Not to sure if this is the right place to post this, let me know if I'm wrong. I'll try to go through this as quickly as possible to save your time:
I have an Ubuntu 12.04 LTS VPS and am using ssh to connect to it.
I have generated a 4096 bit SSH-2 RSA key for it with puttygen.exe and am using it within putty to connect to the server (From Windows 8 Pro).
I connect with the IP and customised Port - which has been allowed in the VPS firewall - and the server has the correct public key in the default "~/.ssh/authorized_keys" file.
I connect through and type in my username, and then it says "Server Refused Our Key".
As the moment I now have to type my password as I have set the VPS so that I can log in without key, just VPS user credentials. Obviously I will want to remove this and make it use the key, Any Ideas?
And the reaally weird thing is, if I then "Duplicate" the putty session (go to Menu -> Duplicate Session) and then log in, the key is accepted, even though the key didn't work a minute before on a brand new session! What could be going wrong?
I have an Ubuntu 12.04 LTS VPS and am using ssh to connect to it.
I have generated a 4096 bit SSH-2 RSA key for it with puttygen.exe and am using it within putty to connect to the server (From Windows 8 Pro).
I connect with the IP and customised Port - which has been allowed in the VPS firewall - and the server has the correct public key in the default "~/.ssh/authorized_keys" file.
I connect through and type in my username, and then it says "Server Refused Our Key".
As the moment I now have to type my password as I have set the VPS so that I can log in without key, just VPS user credentials. Obviously I will want to remove this and make it use the key, Any Ideas?
And the reaally weird thing is, if I then "Duplicate" the putty session (go to Menu -> Duplicate Session) and then log in, the key is accepted, even though the key didn't work a minute before on a brand new session! What could be going wrong?