Manuals refer to ssh://git@gitlab.rtems.org:2222/... which is not accessible for users without SSH-key
Summary
@gedare thankfully did the painful work of changing all the references from git.rtems.org
to the new gitlab.rtems.org
. Unfortunately, the SSH protocol was used. For example in (rtems-docs.git
) user/start/sources.rst
is says now:
git clone ssh://git@gitlab.rtems.org:2222/rtems/tools/rtems-source-builder.git rsb
This does not work for users which have no Gitlab account or have not (yet) deposited an SSH public key. It would be better to use the HTTPS protocol as this permits to clone and update the repos without Gitlab account. For example:
git clone https://gitlab.rtems.org/rtems/tools/rtems-source-builder.git rsb
Steps to reproduce
I used a container to verify:
$ podman run -it --rm ubuntu:latest bash
root@35177ab8d4a3:/# apt update
[...]
root@35177ab8d4a3:/# apt install git
[...]
root@35177ab8d4a3:/# cd
root@35177ab8d4a3:~# git config --global user.email "user@example.com"
root@35177ab8d4a3:~# git config --global user.name "User Name"
root@35177ab8d4a3:~# git clone ssh://git@gitlab.rtems.org:2222/rtems/tools/rtems-source-builder.git rsb
Cloning into 'rsb'...
The authenticity of host '[gitlab.rtems.org]:2222 ([140.211.10.148]:2222)' can't be established.
ED25519 key fingerprint is SHA256:9UCwVh/lXqg0AG8rjTSB2AJIMPpoh3aL8atLTjQ4ASo.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[gitlab.rtems.org]:2222' (ED25519) to the list of known hosts.
git@gitlab.rtems.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
root@35177ab8d4a3:~# git clone https://gitlab.rtems.org/rtems/tools/rtems-source-builder.git rsb
Cloning into 'rsb'...
remote: Enumerating objects: 13541, done.
remote: Counting objects: 100% (483/483), done.
remote: Compressing objects: 100% (222/222), done.
remote: Total 13541 (delta 274), reused 462 (delta 261), pack-reused 13058 (from 1)
Receiving objects: 100% (13541/13541), 3.57 MiB | 507.00 KiB/s, done.
Resolving deltas: 100% (9399/9399), done.
root@35177ab8d4a3:~# exit