This is probably an Intellij problem. Your key are managed natively by ssh, and Intellij has it‘s own ssh program.
Go to the settings, search git->ssh executable then choose native
As seen here : git with IntelliJ IDEA: Could not read from remote repository
git: fatal: Could not read from remote repository
原文:http://www.cnblogs.com/duanweishi/p/7223360.html