How can you use PyCharm with multiple SSH identities?

  • 2
  • 9

I have two different ssh identities for the same Git-based VCS, one for each repo that I have there. How can I get PyCharm to use the proper id_rsa file for each? Whenever I perform a VCS operation, PyCharm prompts for a passphrase, but there's no way (that I can find) to tell PyCharm which key file I want to use. It just defaults to the one named id_rsa. I can play games with symbolic links and ensure ahead of time that id_rsa is linked to the file I want to use, but is there a way to either associate a key file with a repo or make that choice interactively?

Apologies if a duplicate – searched and didn't find this question.

Thanks.
It is not supported directly in PyCharm: http://youtrack.jetbrains.com/issue/IDEA-24944
However, you can make a workaround using ~/.ssh/config file (see comments in the request).

Many thanks for the quick reply. And please do add this feature! :-)