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 installer gocd via rpm, then you would set
this key in the home directory (
/var/lib/go-server/.ssh/myprivatekey.id_rsa)

Permissions for .ssh would be 600, and for the key would be 400, with the
gocd process user owning the directory and The identity file.

— Sriram


On Thu, 26 Oct 2023 at 12:00 PM, vv-fork <vakhlovs...@gmail.com> wrote:

> 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 ssh key there.
>
> I’ve installed github-oauth-authorization-plugin and set it as described
> (connection ok in authorisation configuration step), and restarted the
> server, however it’s still throwing that standard error “fatal: could not
> read Username for ‘https://github.com’ meaning that the access is still
> closed.
>
> What else can be done as you think?
>
> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to go-cd+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/ed3022b6-e1ec-4c3b-8ca3-3c5e6b7d72f4n%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/ed3022b6-e1ec-4c3b-8ca3-3c5e6b7d72f4n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to go-cd+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CANiY96azM2%3DaFO351d4PpExOatRCO%2BoaQju3Juvm2yAbQR2d5A%40mail.gmail.com.

Reply via email to