Greetings Sriram! Thank you for pointing that out.
Here is what i tried:
1. switched to *go *user and checked known_hosts
[go@ip-172... ~]$ cat .ssh/known_hosts
github.com,20.248.137.48 ecdsa-sha2-nistp256 A...
2. added ssh-add into bashrc, so each connection to that user should now
Based on the error message it looks like the clone URL you are using is
still an HTTPS one - to use SSH auth, you need to change it to an ssh URL,
e.g g...@github.com:gocd/gocd.git - it's an entirely different git
transport, not just an auth mechanism so the URL needs to change
accordingly :-)
If
On Fri, Oct 27, 2023 at 1:13 PM vv-fork wrote:
> Thank you guys Sriram and Chad for answering those! Now it's getting
> clearer to me
>
> *I was able to connect using token. It's fine.*
>
> Though I* wasn't able* to connect using SSH Certificate.
> The key has been generated and installed:
>
Thank you guys Sriram and Chad for answering those! Now it's getting
clearer to me
*I was able to connect using token. It's fine.*
Though I* wasn't able* to connect using SSH Certificate.
The key has been generated and installed:
[image: unnamed.png]
it seems i set proper permissions:
[image:
To add on to Sriram's comments, the use of the
github-oauth-authorization-plugin doesn't have any relationship with access
to repository content on GitHub - it simply allows people to log onto GoCD
using their Github identity, and optionally to have access to GoCD pipeline
groups mapped to GitHub
Please see:
https://docs.github.com/en/authentication/connecting-to-github-with-ssh
The gocd server runs as a particular user account. That user account needs
access to the ssh private keys used to authenticate with GitHub.
The go agent too needs the same access.
Assuming you are on Linux and
Hello colleagues!
What is the best way to connect on-prem goCD with GitHub private repo in
cloud? I was smoking docs and manuals for quite a while, but what people
say it’s to install ssh keys to both GitHub and goCD, which won’t work,
since I am using github.com, so i suppose i can’t install