Saturday, May 5, 2012

How to convert Putty's ppk to be compatible with SecureCRT

I'm using Putty to connect to my server. However, it is much comfortable to use SecureCRT. I have .ppk use in my Putty to connect to some of our server. Since I'll be using SecureCRT, I have to convert into a format SecureCRT will understand.

To convert .ppk to .pub, do the ff:

1. Run "puttygen.exe". The "PuTTY Key Generator" dialog will appear.

2. Use the "Load" button to load the .ppk file that contains your private key. If your private key file is protected with a passphrase, you will be prompted to supply the passphrase in order to complete the loading of the private key.

3. Once the private key has been loaded properly, choose "Export OpenSSH key" from the main "Conversions" pull-down menu that is part of the "PuTTY Key Generator" window.

4. When the "Save private key as:" window appears, specify a filename for the private key file such as "Identity" and choose "Save".

NOTE: The private key file name should not have any extension associated with it. For example, if SecureCRT is configured to use a public key named "Identity.pub", it expects to find the private key in the same folder as the public key file, with the name of "Identity".

Similarly, if SecureCRT is confgured to use a private key named "Identity", it expects to find a the public key in a file named "Identity.pub" located in the same folder as the private key file.

Now you will need to export the public key to a file format that follows the IETF SecSH internet-draft.

5. Choose "Save public key". When the "Save public key as:" window appears, specify a filename for the public key file, such as "Identity.pub", and choose "Save".

NOTE: It is important for use with VanDyke Software products that the public and private key files both share the same basename. For example, if you named your private key file "Identity" as suggested in step 4 above, the public key file should be saved as "Identity.pub".

Once you have completed the steps outlined above, you will be able to use your Identity and Identity.pub files with VanDyke Software products.

1 comment:

  1. Didn't work for me. When I saved the public file using the "Save public key" button, the first line was

    ---- BEGIN SSH2 PUBLIC KEY ----

    instead of the desired line

    ---- BEGIN RSA PUBLIC KEY ----

    ReplyDelete