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

Leave a Reply

avatar
  Subscribe  
Notify of
Close Menu