Skip to content

Instantly share code, notes, and snippets.

@jiggneshhgohel
Last active September 8, 2022 00:28
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jiggneshhgohel/afe96f0d57bdbf8beba305a73905402d to your computer and use it in GitHub Desktop.
Save jiggneshhgohel/afe96f0d57bdbf8beba305a73905402d to your computer and use it in GitHub Desktop.
Windows 10 Linux Subsystem SSH-agent issues
Host github.com-jiggneshhgohel
HostName github.com
User git
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_work_gmail
AddKeysToAgent yes


Host csexperimental.abc.com
IdentityFile ~/.ssh/id_work_gmail
AddKeysToAgent yes

References:

FROM

$ ssh -V
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8, OpenSSL 1.0.1f 6 Jan 2014

TO

~$ ssh -V
OpenSSH_7.3p1 Ubuntu-1, OpenSSL 1.0.2g  1 Mar 2016
@gomker
Copy link

gomker commented Jul 5, 2018

This method was not working for me with latest Ubuntu 18.04 and Windows 10
Errors connecting to SSH agent still occur

FYI - looks to be a bug

microsoft/WSL#3183

@ygale
Copy link

ygale commented Aug 30, 2018

According to the discussion in microsoft/WSL#3183, the issue with ssh-agent on Ubuntu 18.04 is fixed in insiders build 17704. The fix will be pushed out to regular Windows builds as part of the Fall 2018 update. In the meantime, one reported work-around is to retrieve the ssh-agent binary for Ubuntu 16.04 from the Ubuntu site and use that on 18.04 for now. In #3183 there is a recipe by @rcarmo how to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment