You are located in service: Software Engineering Services (GitLab)

Show and edit SSH Keys

Show and edit SSH Keys

Detailinformation

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:

ssh key settings for gitlab

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

last changed on 05/16/2024

How did this content help you?

Creative Commons Lizenzvertrag
This work is licensed under a Creative Commons Attribution - Share Alike 3.0 Germany License