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