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?
.gitconfig? I'm having difficulty reproducing..sshfolder was set to another path and hence the mounting of.sshpointed to the wrong folder. Feel free to post your example.devcontainer.jsonand I staple my bounty to it. Don't want the points being lost, so better they serve someone who tried checking out this question.