[SOLVED] IntelliJ IDEA, git, ssh: Fetch failed: Could not read from remote repository

Problem
Any remote Git operation made with IntelliJ IDEA does not work, but the same operation performed directly from command line works correctly.

 

Cause
The problem is that IntelliJ IDEA uses the built-in version of git and it does not have an access to any of ssh keys located in  ~/.ssh/ directory.

 

Solution
The idea of the solution is to switch Idea’s SSH executable mode to use native OS SSH.
Go to File->Settings->Version Control->Git and change SSH executable to Native.

2
Leave a Reply

avatar
1 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
lukasz.cieslaGilbert Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Gilbert
Guest
Gilbert

This solution did not work, I am still getting the “couldn’t authorize’ error. I am using intellij 12

Close Menu