Coder.comC
Coder.com14mo ago
31 replies
Some Dinosaur

Failed to pull GitHub private repo

I know this has been asked before - but I absolutely don't get how to solve it from the responds.
I got the SSH key from
SSH keys
settings, pasted it to my SSH keys on GitHub.

I use the Devcontainer template, with my own repository URL.

I keep getting an error:
envbuilder v1.1.0+a3a6a83 - Build development environments from repositories in a container
#1: 📦 Cloning git@github.com:MyUsername/my-repository.git to /workspaces/my-repository...
#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: Parsed Git URL as "ssh://git@github.com/MyUsername/my-repository.git"
Failed to clone repository: clone "git@github.com:MyUsername/my-repository.git": error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
Falling back to the default image...
Solution
ok - someone on Stackoverflow faced the same problem. I was trying to authenticate on the host with
host_name:7080
but once I replaced
host_name
with
localhost
it just works. I don't know what is happening anymore
Was this page helpful?