ssh-add -l Error connecting to agent: Connection refused

5,722

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.

Share:
5,722
Haim
Author by

Haim

Magento enthusiast. A passion for debugging and understanding concepts and underlying methods

Updated on September 18, 2022

Comments

  • Haim
    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 server ssh user@address
    The ForwardAgent doesn't work (git pull, for example fails).
    Then I disconnect from remote server CTRL+d
    I try running ssh-add -l and I get Error 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