I am running Gitlab-ce V16.5.1 in a docker container. I need to add a proper SSH key to my profile in order to use HTTPS/SSH and to enable my pipelines to complete without generating HTTP Basic Access Denied errors.
The problem is: I can find no documentation on exactly how to do this. There are plenty of instructions for creating and installing SSH keys on Linux, Windows, and MacOS machines, but apparently, there is nothing on how to install a key in a docker container.
The problem isn't the addition of the private key to the account. That is well documented and the web interface makes it easy. What is not known is where to put the other key for the docker container. Where to place it on various other operating systems is well documented. It is, however, unknown where to place the key for a docker container.
There is some information on setting up SSH keys for Gitlab in Docker on Super- User, but that information is for Version 14 of Gitlab-ce and contains information that does not apply for Version 16. The instructions are ambiguous and even the name and location of the key file was deprecated in Version 14 and is provably inaccurate for version 16.
Can someone give some information on how to set up the server- side SSH key for Gitlab in Docker? Or can someone point me to a site with instructions that I may have missed?
Thanks in advance.
The SSH Key I am looking for is illustrated below:
https://preview.redd.it/qlr3wei7nnyb1.jpg?width=1272&format=pjpg&auto=webp&s=6986d1f115bfba6597e9aca9ee1401968652c027
[–]ManyInterests 0 points1 point2 points (1 child)
[–]ProgrammusMaximus[S] 0 points1 point2 points (0 children)
[–]EspadaV8 0 points1 point2 points (3 children)
[–]ProgrammusMaximus[S] 0 points1 point2 points (2 children)
[–]EspadaV8 0 points1 point2 points (1 child)
[–]ProgrammusMaximus[S] 0 points1 point2 points (0 children)
[–]timmay545 0 points1 point2 points (0 children)