Techno-bits and some graphical adventures of my life


Use your putty ppk file to ssh remote server in ubuntu

Problem : You have been using winscp tool in windows to access your remote server. Now the geek inside you make a move to linux and you are stuck how to use the passkey used in winscp with openssh client in linux.

Solution: First of all, the .ppk file is putty specific one and you need to convert it to the openssh format, so that it can be used with ssh command in the terminal.

To convert the ppk file download the puutygen tool in ubuntu (the commands vary a lil bit depending on the flavour of linux you are using):

sudo apt-get install putty

This will automatically install the puttygen tool.

Now to convert the ppk file to be used with ssh command execute the following in terminal

puttygen mykey.ppk -O private-openssh -o my-openssh-key
Now, you can easily access to remote server using:

sudo ssh -v -i my-openssh-key



  1. riz - November 23, 2012 6:02 pm

    hi How do you delete a specific key? for example I want to delete the “my-openssh-key” I
    just added?

  2. Robin Tyagi - August 27, 2013 9:51 am

    not working only locking “debug1: Reading configuration data /etc/ssh/ssh_config”

    OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Applying options for *
    debug1: Connecting to [] port 22.

    • graphicmist - August 27, 2013 10:33 am

      you need to specify the correct path of your key after -i parameter in command

  3. Raghavendra Chary B - December 31, 2013 10:57 am

    Thanks very much! it worked.

  4. Binod - March 4, 2015 11:27 am

    A little bit of explantion about the commands and parameters at the end will make this more complete 🙂

    • graphicmist - February 12, 2017 4:57 am

      Thanks for the feedback. I will keep this in mind for future posts

  5. Purnendu SIngh - December 2, 2016 3:33 pm

    thanks very helpful for me


Leave a Reply

Your email address will not be published. Required fields are marked *