I have setup a VS Code dev container and I can run and debug my code inside. My ~/.gitconfig
from my host system was correctly copied into the container. However, my ssh credentials don't seem to work (or are not available), neither are my gnupg signing files (~/.gnupg
) available.
Must I manually copy these files ( ~/.ssh
and ~/.gnupg
) into the container?
The documentation cautions:
There are some cases when you may be cloning your repository using SSH keys instead of a credential helper. To enable this scenario, the extension will automatically forward your local SSH agent if one is running.
The only stated requirement is the SSH-agent server running on my host system, which it is:
C:\Windows\system32> Get-Service ssh-agent
Status Name DisplayName
------ ---- -----------
Running ssh-agent OpenSSH Authentication Agent
What is the correct way to make my SSH credentials available to my dev container?