Closed (fixed)
Project:
Drupal.org infrastructure
Component:
GitLab
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2023 at 20:43 UTC
Updated:
29 May 2023 at 13:59 UTC
Jump to comment: Most recent
I went looking for the repository clone URL to make modifications to a module I maintain and noticed that I could not clone via SSH using the URL provided by GitLab.
GitLab is providing git@git.drupalcode.org:project/audiorecorder.git as the SSH clone URL whereas the SSH clone URL which works is git@git.drupal.org:project/audiorecorder.git.
The HTTPS clone URL provided by GitLab (https://git.drupalcode.org/project/audiorecorder.git) does work, but only for anonymous downloads.
Here's a screenshot showing the wrong SSH clone URL being displayed:

git clone with that URL and receive SSH connection failures:$ git clone git@git.drupalcode.org:project/audiorecorder.git Cloning into 'audiorecorder'... ssh: connect to host git.drupalcode.org port 22: Operation timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Configure GitLab to report the correct hostname for SSH clones.
| Comment | File | Size | Author |
|---|---|---|---|
| gitlab-ssh-clone-url-drupalcode_org.png | 231.94 KB | adamfranco |
Comments
Comment #2
drummThis is an issue with GitLab itself: https://gitlab.com/gitlab-org/gitlab/-/issues/404496
Comment #3
bygeoffthompson commentedI can confirm this issue and the suggested workaround. Changing the SSH URL I received from Gitlab from
git clone git@git.drupalcode.org:project/node_read_time.git .to
git clone git@git.drupal.org:project/node_read_time.git .finally allowed me to pull the repo locally. Hopefully the Gitlab issue can be resolved to avoid this.
Thanks
Comment #4
shashank5563 commentedI have checkout and found git SSH ulr issue is fixed. So, I am moving it for RTBC.
Like: git@git.drupal.org:project/push_notifications.git
Comment #5
drummYes, this has been resolved. We’re now running a version of GitLab with https://gitlab.com/gitlab-org/gitlab/-/issues/404496 committed.