Make IntelliJ IDEA use public key authentication on Windows

If your command line git uses public key auth, the same should work from IDEA. In the IDEA VCS settings switch SSH implementation from IDEA ssh to native so that the same SSH is used as when running command line git.


In the latest version [as of April 29th, 2019], there is no option for SSH executable to switch SSH implementation. So, I followed the following steps on Windows 10:

  1. Create an ssh-keypair (it can be created on Linux and copied onto windows machine)
  2. Copy public SSH key contents to GitHub Settings -> SSH and GPG keys -> New SSH key
  3. Copy private key to C:\Users\<your-user-name>\.ssh\