How to use existing putty generated ssh key in PyCharm (Windows)

Steps:

1. Open puttygen.exe (It is often bundled with many git client, e.g. GitExtension. download it here if there isn’t.)

2. Choose “Conversions” -> “Export OpenSSH key“, export it to the home_directory\.ssh\ folder as file “id_rsa”.

3. Do git operations (e.g. commit, push) in PyCharm.

* Note 1: Step 2 will overwrite existing id_rsa, so this approach only applies to single ssh key. If we need to use multiple ssh key, other method is needed (e.g. using .ssh/config file)
* Note 2: I didn’t test the case in which private key is protected using this approach.

reference: https://www.jetbrains.com/help/pycharm/using-git-integration.html

Leave a Reply

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