5

I'm using IntelliJ on a USB drive, so I'm trying to work out a portable install. I've got most of everything to work, except for VCS.

Whenever I try to push some commits with Git, IntelliJ looks for an SSH key file, but it is looking in my home path (C:\Users\.ssh), and I would rather it looked for the SSH keys somewhere else (namely the IntelliJ IDEA installation folder on my USB drive)

So how can I change the directory where IntelliJ looks for SSH keys? Is it possible?

NecroBumpist
  • 53
  • 1
  • 3

2 Answers2

2

There is an open feature request for this in IntelliJ IDEA issue tracker, please vote,

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • Thank you for sharing that, I've now upvoted it. Though it seems unlikely to be patched soon as it's been over a year since the last update... – NecroBumpist Feb 05 '12 at 16:04
1

IDEA uses %HOME% environment variable to search for .ssh/known_hosts. Setting it to different value might help. Check this answer for more details.

Community
  • 1
  • 1
Željko Trogrlić
  • 2,765
  • 1
  • 16
  • 20
  • I did this and restarted my IntelliJ session with admin privileges and this fixed my issue with previous 'failed authentication(publickey)' error – Alessandro Aug 11 '17 at 14:25