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
- https://stackoverflow.com/a/45562886/936494 - summarizes everything listed in this gist in form of steps which can be followed to resolve SSH agent issues.
- https://superuser.com/questions/1238486/windows-10-linux-subsystem-ssh-agent-not-persisting-added-identities#1238595 - This is the original post which details the issue I was facing
- https://stackoverflow.com/a/41555393/936494 - This one I used to upgrade my SSH version
$ ssh -V OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8, OpenSSL 1.0.1f 6 Jan 2014
~$ ssh -V OpenSSH_7.3p1 Ubuntu-1, OpenSSL 1.0.2g 1 Mar 2016