# SSH

# Putty Keys

### How to convert Linux Openssh key to Putty format?

*Quelle: [https://creodias.eu/-/how-to-convert-linux-openssh-key-to-putty-format-](https://creodias.eu/-/how-to-convert-linux-openssh-key-to-putty-format-)*

If you want to know how to create a SSH keypair in Linux, see [this manual.](https://creodias.eu/faq/-/asset_publisher/hv0ovzc1bXXS/content/19-generating-a-ssh-keypair-in-linux)

Install putty-tools:

<div id="bkmrk-sudo-apt-get-install"><div><div>```
sudo apt-get install putty-tools
```

</div></div></div>Then:

<div id="bkmrk-cd-%7E%2F.ssh%2F-puttygen-"><div><div>```
cd ~/.ssh/

puttygen id_rsa -o id_rsa.ppk
```

</div></div></div>If we would like to convert the Putty format key to Openssh key:

<div id="bkmrk-to-generate-the-priv"><div><div>- To generate the private key follow this command:

```
puttygen id_dsa.ppk -O private-openssh -o id_dsa
```

- To generate public key follow this command:

```
puttygen id_dsa.ppk -O public-openssh -o id_dsa.pub 
```

</div></div></div>Be sure that the permissions are set correctly for private and public key:

<div id="bkmrk-chmod-600-id_dsa-chm"><div><div>```
chmod 600 id_dsa
chmod 666 id_dsa.pub
```

</div></div></div>If you would like to learn more about PuTTYgen, learn about the installation or usage guide, we invite you to visit the website [www.puttygen.com](http://www.puttygen.com)