ssh-add -l Error connecting to agent: Connection refused
This issue seems to be fixed in October 2018 update (version 1809) (GitHub issue).
However you may have not installed this update yet, because October update was postponed and will be released on November 13, 2018 (Microsoft support page).
UPDATE (2018/12/16): I've applied October Update and confirmed that this issue has been fixed.
Haim
Magento enthusiast. A passion for debugging and understanding concepts and underlying methods
Updated on September 18, 2022Comments
-
Haim over 1 year
I'm using Ubuntu 18 on Windows Bash
When i launch Ubuntu I can
ssh-add
without any problem.
Then I connect to a remote serverssh user@address
TheForwardAgent
doesn't work (git pull, for example fails).
Then I disconnect from remote serverCTRL+d
I try runningssh-add -l
and I getError connecting to agent: Connection refused
Everything used to work fine on Ubuntu 14 - I recently upgraded to Ubuntu 18 and now I'm stuck.
OpenSSH_7.6p1
-
Haim over 5 yearsI reverted to Ubuntu 16 with OpenSSH_7.2 and everything is working as intended
-
pa4080 over 5 yearsI'm not satisfied of
ssh-add
at all, fortunately in most cases we can use `~/.ssh/config/ case instead. For example: How do I setup SSH key based authentication for GitHub by using ~/.ssh/config file?
-