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

9
Leave a Reply

avatar
6 Comment threads
3 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
9 Comment authors
MaxAxelLandon GravatGokmen SokmenElizaveta 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?

Landon Gravat
Guest

it was removed by JetBrains because the native is now the default, andthey dont intend for you to change it, because they removed the other option

Axel
Guest
Axel

Thanks for clarifying. Regards

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

Max
Guest
Max

tnx man it works!

Close Menu