Getting SSH Keys into Dev Containers
Hi,
I'm using dev containers with
envbuilder
and created a custom template to run them in Azure VMs. It's working well so far. Now I'm trying to extend it with a few more features.
Specifically, I want to use the SSH key generated by Coder inside the dev containers so I can clone private repositories and run Git commands over SSH.
I’ve read the envbuilder git auth docs ( https://github.com/coder/envbuilder/blob/main/docs/git-auth.md), but I'm still a bit stuck. I tried using HTTPS for Git access, but it's not working in my case. I'm not sure how to properly set the ENVBUILDER_GIT_SSH_PRIVATE_KEY_PATH
variable.
Any help or examples would be appreciated. Thank you!4 Replies