C
Coder.com3mo ago
Mauro

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
Codercord
Codercord3mo ago
Codercord
Codercord3mo ago
What are you creating this issue for?
Phorcys
Phorcys3mo ago
hey! apologies for the delay, were you able to figure this out? hey @Mauro, i'll be closing this issue, but please ping me if you still need help and i'll reopen it :-)
Codercord
Codercord3mo ago
@Phorcys closed the thread.

Did you find this page helpful?