Some Dinosaur
Some Dinosaur
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
Ok so OAuth will never work with pulling repo through ssh - but with HTTPS it works. But I still want to know how to set up the alternative - pushing the SSH in a file.
24 replies
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
No description
24 replies
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
I've set the external Auth, I added the thing to .tf file, both environment variable "ENVBUILDER_GIT_USERNAME" : data.coder_external_auth.github.access_token, and the external auth. And I still get the same exact error:
#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: 🔑 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"
24 replies
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
No description
24 replies
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
This Build works like every 10th time I click it, and keeps spitting 500 error to my browser console without any other feedback on what's wrong
24 replies
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
No description
24 replies
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
you mean in the .tf file of my template? I can't change anything there. Publish is grayed out and nothing I do here's saved
24 replies
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
I should mention I'm not very smart. But from my perspective I put in a name, github URL (ssh), my github account has Coder SSH set. I click green button and it starts working. So my decision points are literally - SSH key and URL. Next part where I can change anything is .devcontainer folder with Dockerfile and everything else - but I can't get this far :c since I cannot clone the repository. I see the workaround description to just download the key to the environment - I just have no idea where in this user-scenario I can achieve it.
24 replies
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
If I do that can I still use the template through?
24 replies
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
running clone from the terminal also fails even though GIT_SSH_COMMAND is set - I think I'm missing something basic here:
/$ sudo git clone [email protected]:MyUsername/my-repository.git
Cloning into 'my-repository'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
/$ sudo git clone [email protected]:MyUsername/my-repository.git
Cloning into 'my-repository'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
24 replies
CCoder.com
Created by Some Dinosaur on 12/23/2024 in #help
Failed to pull GitHub private repo
I also ran $GIT_SSH_COMMAND from the container terminal, and it tells me:
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address]
[-c cipher_spec] [-D [bind_address:]port] [-E log_file]
[-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file]
[-J destination] [-L address] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-P tag] [-p port] [-R address]
[-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
destination [command [argument ...]]
ssh [-Q query_option]

Coder authenticates with git using the public
key below. All clones with SSH are authenticated automatically 🪄.

ssh-ed25519 AAAAC3NzaC1lZXXXXXXXXXHIDINGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Add to GitHub and GitLab:
https://github.com/settings/ssh/new

https://gitlab.com/-/profile/keys

Encountered an error running "coder gitssh", see "coder gitssh --help" for more information
error: exit status 255
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address]
[-c cipher_spec] [-D [bind_address:]port] [-E log_file]
[-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file]
[-J destination] [-L address] [-l login_name] [-m mac_spec]
[-O ctl_cmd] [-o option] [-P tag] [-p port] [-R address]
[-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
destination [command [argument ...]]
ssh [-Q query_option]

Coder authenticates with git using the public
key below. All clones with SSH are authenticated automatically 🪄.

ssh-ed25519 AAAAC3NzaC1lZXXXXXXXXXHIDINGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Add to GitHub and GitLab:
https://github.com/settings/ssh/new

https://gitlab.com/-/profile/keys

Encountered an error running "coder gitssh", see "coder gitssh --help" for more information
error: exit status 255
24 replies