Make IntelliJ IDEA public key authentication in Windows

I am an Eclipse user who is evaluating the switch to IntelliJ IDEA. I am currently testing IDEA 10.0.2. My operating system is Windows.

When working with Git over SSH, IDEA always asks for my password. I cannot find any parameter in the settings to use public key authentication. By this post, my key is in the %USERPROFILE%\.ssh directory, and my HOME variable points to the same directory as USERPROFILE .

I don’t know what I am doing wrong, and Google did not give any results for more information. Does anyone know how to do public key authentication for IDEA?

EDIT . My key is password protected.

+7
git intellij-idea ssh public-key
source share
2 answers

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

+18
source share

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

  1. Create an ssh key pair (it can be created on Linux and copied to a Windows computer)
  2. Copy the contents of the SSH public key to Settings GitHub -> SSH and GPG keys New SSH key
  3. Copy the private key to C:\Users\<your-user-name>\.ssh\
0
source share

All Articles