+ Reply to Thread
Results 1 to 3 of 3

Thread: openSSH: Server Refused our Key

  1. #1
    Jordan Guest

    openSSH: Server Refused our Key

    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:

    Code:
    # ssh-keygen -if public_key > authorized_keys2
    Next move authorized_keys into your ~/.ssh directory. Chmod the file to 600.

    Code:
    # chmod 600 ~/.ssh/authorized_keys2
    Make sure your .ssh directory has the proper permissions:

    Code:
    # chmod 600 ~/.ssh
    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"

    You can learn how to generate SSH keys from Linux to Linux here (by Tor).

  2. CODECALL Circuit advertisement

     
  3. #2
    TkTech's Avatar
    TkTech is offline The Crazy One
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,412
    Blog Entries
    1
    Rep Power
    31

    Re: openSSH: Server Refused our Key

    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.

  4. #3
    Jordan Guest

    Re: openSSH: Server Refused our Key

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 12
    Last Post: 09-02-2011, 09:32 PM
  2. remote commands to windows server from linux server
    By centsinger in forum PHP Development
    Replies: 2
    Last Post: 06-15-2010, 08:00 AM
  3. Replies: 4
    Last Post: 05-22-2010, 04:48 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts