SSH Keys
Command Line
To add a key to the server, SSH into the server, run this command, and paste the contents of your public key at the bottom of the authorized_keys file on a new line.
vim ~/.ssh/authorized_keysTo create a new SSH key
ssh-keygen -t rsa -b 2048 -C "<comment>"Gitlab.com SSH config
# GitLab.com
Host gitlab.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/gitlab_com_rsa