eclipsegithubsshegit

Eclipse Git SSH : Could not connect to SSH agent via socket


I'm trying to use Eclipse (2022-09 version) egit to clone a Github repo using ssh under Linux Mint. When I do, I get an eclipse error message :

DefaultAuthFuture[ssh-connection]: Failed (IOException) to execute: Could not connect to SSH agent via socket '/run/user/1000/keyring/ssh'

I'm using a rsa private key (but not the default id_rsa) which is registered with Github. I also created a .ssh/config file to specify the right identity.

When cloning the repo with the git command line, it works. In the Eclipse preferences, in SSH2 menu, I have set the identify in private keys field. I also see that I don't have any ssh_agent in the SSH Agent tab. But I can't add anything.

I know that there have always been some problems with egit ssh on Linux. But I can't find my error anywhere.

Thanks for your help.


Solution

  • I didn't find the explanation of the problem that seems to be caused by the ssh-agent installation on my machine. But disabling the ssh-agent in Eclipse works (Preferences > Git > unselect "Use SSH Agent for SSH connections"