Thursday, March 27, 2014

Convert Putty ppk key to SSH key

You cant use a putty ppk to ssh to a remote server from you linux machine. In that case you may need to first convert ppk to ssh file.

For that first you need to install putty on your machine.

$ sudo apt-get install putty

Then goto the directory and run the  following command to convert ppk to ssh file.

$ puttygen key.ppk -O private-openssh -o key.ssh

Here, I assume, kep.ppk is you ppk file and key.ssh will be newly created ssh file.
After this you can ssh to your remote machine/server using following command.

$ ssh -i key.ssh

No comments:

Post a Comment