Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 645
benblan Avatar asked Dec 06 '25 17:12

benblan


1 Answers

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"

like image 182
benblan Avatar answered Dec 08 '25 06:12

benblan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!