C
Coder.comโ€ข2mo ago
ShamesBond

Devcontainer template fails to pull private repo, ssh-agent not available

envbuilder v1.0.0-rc.6+23d086e - Build development environments from repositories in a container
#1: ๐Ÿ”‘ Using SSH authentication!
#1: ๐Ÿ”‘ No SSH key found, falling back to agent!
#1: โŒ Failed to connect to SSH agent: error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
#1: ๐Ÿ“ฆ Cloning [email protected]:my/repository.git to /workspaces/repository...
Failed to clone repository: clone "[email protected]:my/repository.git": error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
Falling back to the default image...
envbuilder v1.0.0-rc.6+23d086e - Build development environments from repositories in a container
#1: ๐Ÿ”‘ Using SSH authentication!
#1: ๐Ÿ”‘ No SSH key found, falling back to agent!
#1: โŒ Failed to connect to SSH agent: error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
#1: ๐Ÿ“ฆ Cloning [email protected]:my/repository.git to /workspaces/repository...
Failed to clone repository: clone "[email protected]:my/repository.git": error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
Falling back to the default image...
What might I be missing to authorize my devcontainer to pull this repo?
7 Replies
Codercord
Codercordโ€ข2mo ago
<#1287496944557494295>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcysโ€ข2mo ago
hey @ShamesBond, we have an ongoing issue for this
Phorcys
Phorcysโ€ข2mo ago
GitHub
Allow passing Git SSH key as an environment variable ยท Issue #333 ยท...
Following up to a discord conversation where an user tries to clone a Git repository via SSH and is met with the following error: envbuilder v1.0.0-rc.6+23d086e - Build development environments fro...
Phorcys
Phorcysโ€ข2mo ago
I had a conversation with another user about this -> https://discord.com/channels/747933592273027093/971231372373033030/1279228570295599114 TL;DR use external auth for Git, mount the SSH key to a file or wait
ShamesBond
ShamesBondOPโ€ข2mo ago
How do I tell envbuilder to use my external auth?
ShamesBond
ShamesBondOPโ€ข2mo ago
GitHub
GitHub - coder/envbuilder: Build development environments from a Do...
Build development environments from a Dockerfile on Docker, Kubernetes, and OpenShift. Enable developers to modify their development environment quickly. - coder/envbuilder
Codercord
Codercordโ€ข2mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server