Results 1 to 2 of 2

Thread: Unable to use key file "D:\privatekey.ppk" (OpenSSH SSH-2 private key)

  1. #1
    Join Date
    May 2009
    Beans
    13

    Unable to use key file "D:\privatekey.ppk" (OpenSSH SSH-2 private key)

    Hi!

    I have set up an ssh server on my home machine running Ubuntu and I want to connect to it from work with Putty useing public/private key authentication. I generated the key pair with PuttyGen, copied the public key to authorized_keys file but when I try to connect I get this message: Unable to use key file "D:\privatekey.ppk" (OpenSSH SSH-2 private key). What am I doing wrong?

  2. #2
    Join Date
    Jul 2009
    Location
    San Diego
    Beans
    102

    Re: Unable to use key file "D:\privatekey.ppk" (OpenSSH SSH-2 private key)

    Quote Originally Posted by .09. View Post
    Hi!

    I have set up an ssh server on my home machine running Ubuntu and I want to connect to it from work with Putty useing public/private key authentication. I generated the key pair with PuttyGen, copied the public key to authorized_keys file but when I try to connect I get this message: Unable to use key file "D:\privatekey.ppk" (OpenSSH SSH-2 private key). What am I doing wrong?

    http://sial.org/howto/openssh/publickey-auth/
    http://sial.org/howto/openssh/publickey-auth/problems/


    http://the.earth.li/~sgtatham/putty/...Chapter10.html
    10.8 ‘Unable to use this private key file’, ‘Couldn't load private key’, ‘Key is of wrong type’

    Various forms of this error are printed in the PuTTY window, or written to the PuTTY Event Log (see section 3.1.3.1) when trying public-key authentication, or given by Pageant when trying to load a private key.
    If you see one of these messages, it often indicates that you've tried to load a key of an inappropriate type into PuTTY, Plink, PSCP, PSFTP, or Pageant.
    You may have specified a key that's inappropriate for the connection you're making. The SSH-1 and SSH-2 protocols require different private key formats, and a SSH-1 key can't be used for a SSH-2 connection (or vice versa).
    Alternatively, you may have tried to load an SSH-2 key in a ‘foreign’ format (OpenSSH or ssh.com) directly into one of the PuTTY tools, in which case you need to import it into PuTTY's native format (*.PPK) using PuTTYgen - see section 8.2.12.
    Last edited by dk06; August 28th, 2009 at 11:41 AM.

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
  •