0

I am using devpod to make environments reproducible. Nevertheless, when I try to commit code I am getting an error that git is not able to find my ssh keys, so I get a 403.

Is it possible to share my git ssh keys with the devcontainer?

Kanekotic
  • 2,824
  • 3
  • 21
  • 35

1 Answers1

0

This is possible to achieve with the mount capability of the devcontainer.json configuration file:

    {
        "name": "container name",
        ...
        "remoteUser": "root",  
        "mounts": [
            "source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind,consistency=cached",
        ]
       ...
    }
Kanekotic
  • 2,824
  • 3
  • 21
  • 35