Blog

IntelliJ IDEA, Linux, git and ssh

I have been looking for a while WHY on my work environment I can pull / push /… from git nicely but not on my home environment (kubuntu raring)

I thought at first intelliJ was not finding my .ssh folder.
The only error I got was “fatal: Could not read from remote repository”.

After looking in the logs, I found (somehow I might have missed this many times) that a call to a specific application is made for the user to enter the ssh key password

2013-10-01 17:18:07,772 [ 251506] INFO - git4idea.commands.GitHandler - ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
2013-10-01 17:18:07,776 [ 251510] INFO - git4idea.commands.GitHandler - Permission denied (publickey).
2013-10-01 17:18:07,777 [ 251511] INFO - git4idea.commands.GitHandler - fatal: Could not read from remote repository.
2013-10-01 17:18:07,778 [ 251512] INFO - git4idea.commands.GitHandler - Please make sure you have the correct access rights
2013-10-01 17:18:07,778 [ 251512] INFO - git4idea.commands.GitHandler - and the repository exists.

So after installing ssh-askpass, everything works now 🙂