I'm reading these docs on sharing SSH keys with a dev container, but I can't get it to work.
My setup is as follows:
Windows 10 with Docker Desktop 4.2.0 using the WSL2 backend
A WSL2 distro running Ubuntu 20.04
In WSL2, I have
ssh-agent
running and aware of my key:λ ssh-add -l 4096 SHA256:wDqVYQshQBCG/Sri/bsgjEaUFboQDUO/9FJqhFMncdk /home/taschan/.ssh/id_rsa (RSA)
The docs say
the extension will automatically forward your local SSH agent if one is running
But if I do ssh-add -l
in the devcontainer, it responds with Could not open a connection to your authentication agent.
; and of course starting one (with eval "$(ssh-agent -s)"
) only starts one that doesn't know of my private key.
What am I missing?