OS (for better or worse) is XP
I am having some issues, I have seen other questions but none seem to apply to me.
- I have CopSSH installed and I can log in using cleartext password.
- Now I want to upgrade that to SHA keys.
- I use PuttyGen to get a public and private key
- I then copy those into ~/.ssh and %ICW%/home/%un%/.ssh as id_rsa and id_rsa.pub.
- I add the public key as follows....
Example Pubkey
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20121115"
AAAAB3NzaC1yc2EAAAABJQAAAIBdfRGHY4IYsUuDYzbgEy1wKXrszq5RVR4m2/gP
WJwLwiaNHpahfPeHmsG7nD7qeVNVp+sSVouApm70ZdfGnxzOHiBydtdOuco+sbqZ
irlyG9wS5yv8x9LFsGqZ34tbr8dgPXMdYnrJHJqUa3+ZMUNPXznRUzj/VTiwoS6/
jMHzkw==
---- END SSH2 PUBLIC KEY ----
Example known_host
<ServerName>,<IP>,localhost ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBdfRGHY4IYsUuDYzbgEy1wKXrszq5RVR4m2/gPWJwLwiaNHpahfPeHmsG7nD7qeVNVp+sSVouApm70ZdfGnxzOHiBydtdOuco+sbqZirlyG9wS5yv8x9LFsGqZ34tbr8dgPXMdYnrJHJqUa3+ZMUNPXznRUzj/VTiwoS6/jMHzkw== UN@SERVER
So now I add the generated private key to putty and try to connect but I see the following...
Server refused our key
It still allows me to log in using my password.
How can I get the Private Key auth to work?