Table of Contents

devcontainer

ssh key access

Add bind mounts to devcontainer.json

devcontainer.json
"mounts": []
"source=${localEnv:HOME}/.ssh/,target=/home/vscode/.ssh,type=bind", 

Windows WSL

WSL is avail under network share \\wsl.localhost\[distro]

devcontainer.json
source=\\\\wsl.localhost\\Ubuntu\\home\\username\\.ssh,target=/home/vscode/.ssh/,type=bind"