Forum

Message Boards Message Boards

Back

Did you know #5 - How to convert Linux Openssh key to Putty format?

Did you know #5 - How to convert Linux Openssh key to Putty format?
configuration forum putty openssh
Answer
18 October 2018 12:38
Install putty-tools:

1
sudo apt-get install putty-tools

Then:

123
cd ~/.ssh/

puttygen id_rsa -o id_rsa.ppk
 

If we would like to convert the Putty format key to Openssh key:

  • To generate the private key follow this command:
1
puttygen id_dsa.ppk -O private-openssh -o id_dsa
  • To generate public key follow this command:
1
puttygen id_dsa.ppk -O public-openssh -o id_dsa.pub

Be sure that the permissions are set correctly for private and public key:

12
chmod 600 id_dsa
chmod 666 id_dsa.pub
 
For more information, we invite you to visit our FAQ page: https://creodias.eu/faq
0 (0 Votes)