Show and edit SSH Keys
Show SSH Keys
The SSH keys stored in GitLab can be found at https://git-ce.rwth-aachen.de/-/profile/keys or https://git.rwth-aachen.de/-/profile/keys
Add an SSH Key
Once you have opened the page for the SSH keys (see links above), the following page will appear:
You can now add a key here by inserting the public part of your SSH key into the input field. Details can be found on the website: https://www.heise.de/tipps-tricks/SSH-Key-erstellen-so-geht-s-4400280.html .
Delete an SSH Key
On the page with the SSH keys (see above), you can also delete SSH keys. To do this, click on the trash icon next to the key you want to delete.
List SSH Keys via API
To be able to copy an existing SSH key (e.g. when moving the project to another GitLab instance or to another platform), it is helpful to have the SSH keys displayed via the API. In the GitLab interface, the keys are only displayed abbreviated.
To execute the following command, you need a Private Access Token with at least one scope on api:
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://git.rwth-aachen.de/api/v4/user/keys # Für git.rwth-aachen.de curl --header "PRIVATE-TOKEN: <your_access_token>" "https://git-ce.rwth-aachen.de/api/v4/user/keys # Für git-ce.rwth-aachen.de |