Getting SSH agent passthrough working with VS code

I had frustrations getting SSH agent passthrough working with VS code such that when I was remoted onto a linux box and working with git, I wasn't able to use the git functions inside code as the auth was failing.

Doing the following worked for me at an administrator powershell prompt on your own machine

Set-Service ssh-agent -StartupType Automatic

Start-Service ssh-agent

Once you've got pageant or similar loading your keys then this should all work. You might need to add entries similar to below into your local ssh config file to ForwardAgent yes:

Host remotehostname
    User yourusername
    ForwardAgent yes

Also make sure that you've got your ssh identity loaded

Use the following to list identities

'ssh-add -l'

and the following to add your id_rsa key

'ssh-add ~/.ssh/id_rsa'


Popular posts from this blog

Enabling SNMP on an ASUS RT-N66U

Making Microsoft Dataverse OData queries using Postman

Realtek HD Audio speakers and headphones with separate volume