[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.

6
Leave a Reply

avatar
5 Comment threads
1 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
6 Comment authors
Gokmen SokmenElizavetaAxelUday Dattanilukasz.ciesla 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

Uday Dattani
Guest
Uday Dattani

This was really helpful. Thanks a lot!

Axel
Guest
Axel

Where is the “SSH executable” drop down in the latest version(s) of PhpStorm 2019.1.x? Why was it removed?

Elizaveta
Guest
Elizaveta

Im using WebStorm and it works for me. Thanks a lot!

Gokmen Sokmen
Guest
Gokmen Sokmen

when I just open the panel ı could not see ssh executable on my ide.?

Close Menu