Git clone command public key fails12/4/2023 The permission and ownership settings inside your. This indicates the container is having trouble reading the configuration files due to permission / owner issues. For example: docker exec -it gitserver-0 shĮrror: Bad owner or permissions on /home/sourcegraph/.ssh/ You can confirm the error by cloning inside the gitserver directly. This indicates an invalid key is being used. This can be achieved by running ssh-keygen -t ed25519, and configuring Sourcegraph to use this new key. If it is not possible to update the code host, you should generate a new ed25519 SSH key to use for authentication. If you use an RSA SSH key to authenticate to your code host, you should ensure that your code host runs OpenSSL 7.2 or newer. In Sourcegraph 5.1.0 and later, the insecure SSH rsa-sha1 signature algorithm is no longer supported when fetching data from code hosts. Error: sign_and_send_pubkey: no mutual signature supported Host * StrictHostKe圜hecking no AddKeysToAgent yes We recommend adding the StrictHostKe圜hecking no and AddKeysToAgent yes flags to prevent the need to give permission interactively when cloning from a new host. Troubleshooting What should be included in my config file? NOTE: Repository access over SSH is not yet supported on Sourcegraph Cloud. Single-container Sourcegraph: See the single-container git configuration guide.Sourcegraph with Kubernetes: See Configure repository cloning via SSH.Sourcegraph with Docker Compose: See the Docker Compose git configuration guide.Then, follow the directions below depending on your deployment type: Alternatively, you may use the "Generic Git host" code host type, which allows you to directly specify Git repository URLs for cloning. For example, by setting the gitURLType field to "ssh". If authentication (HTTP(S) or SSH) is required to git clone a repository then you must provide credentials to the container.įirst, ensure your Site admin > Manage code hosts code host configuration is configured to use SSH.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |