Make IntelliJ IDEA use public key authentication on Windows

Vojislav Stojkovic picture Vojislav Stojkovic · Apr 1, 2011 · Viewed 18.2k times · Source

I'm an Eclipse user who's evaluating a switch to IntelliJ IDEA. I'm currently trying out IDEA 10.0.2. My operating system is Windows.

When working with Git over SSH, IDEA always asks me for password. I can't find any option in the settings to make it use public key authentication. As per 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'm doing wrong and Googling for more details hasn't produced any results. Does anyone have any idea how to make IDEA use public key authentication?

EDIT: My key is password-protected.

Answer

CrazyCoder picture CrazyCoder · Apr 1, 2011

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.