I learned how to fix this error the hard way, meaning I tried everything I knew when an easy search revealed the answer on the first hit. The error you get is "Server Refused our Key" in Putty when you've used PuttyGen to generate a public/private key pair for SSH authentication.
There can be many reasons that would cause this error but one in particular is the need to convert it to openSSH format. After you've uploaded your public key execute this command:
Next move authorized_keys into your ~/.ssh directory. Chmod the file to 600.Code:# ssh-keygen -if public_key > authorized_keys2
Make sure your .ssh directory has the proper permissions:Code:# chmod 600 ~/.ssh/authorized_keys2
Try it now. If you have further problems, try the steps on this site: How to set up SSH keys: Frustration with "Server refused our key"Code:# chmod 600 ~/.ssh
You can learn how to generate SSH keys from Linux to Linux here (by Tor).
Heh, newer version of OpenSSH actively check permissions. If you check /var/logs/auth.log (or equiv for your distro) it should give you an error message about incorrect permissions.
Permissions were fine on mine, it was the conversion to openSSH format that caused me grief. /var/logs/auth.log doesn't exist on several distrobutions. Instead try /var/log/secure which will show you permission errors but will not show any errors relating to an incorrectly formatted public key.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks