Table of contents
Overview
After you initialize your GitLab account, by logging in to GitLab Community Edition, you can manage your Secure Shell (SSH) access through your profile settings. To learn more about SSH Keys, visit GitLab and SSH keys. If you have any questions on how to get started, contact us at drupal@umd.edu.
Generate a SSH key
- Open the Terminal App on your Mac.
- Check to see if a SSH Key already exists on your PC, by running the following command in Git-Bash.
cat ~/.ssh/id_rsa.pub
NOTE: If you receive a message that indicates that there is NO SUCH FILE OR DIRECTORY, that indicates that there are not any SSH keys on your PC and you will need to generate one before continuing. Learn how to generate a SSH Key with a SSH Keygen on your Mac. Best practices for securing the SSH key is to add a passphrase.
Add SSH key to GitLab
- Copy the contents of your id_rsa.pub file (Copy the complete key starting with ssh-rsa and ending with your username and host).
- Log into GitLab account.
- Select Profile Settings from the menu.
- Select SSH Key menu.
- Paste the key to the SSH Keys text area and type a title that describes your device.