Skip to content

Instantly share code, notes, and snippets.

@zetogk
Last active September 23, 2019 16:25
Show Gist options
  • Save zetogk/3dd6ce4a414b6d9aade790d5d385a1c8 to your computer and use it in GitHub Desktop.
Save zetogk/3dd6ce4a414b6d9aade790d5d385a1c8 to your computer and use it in GitHub Desktop.
Setup Gitlab SSH Key

SSH Key setup

  • Add an SSH key in gitlab.com in order to work with ssh repositories

  • Add the following configuration lines in the file ~ / .ssh/config

Host *
IgnoreUnknown UseKeychain
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa
  • Add the following lines in the git config ~/.gitconfig
 [url "git@gitlab.com:"]
   insteadOf = https://gitlab.com/ 
@stivenson
Copy link

buen aporte monstruo !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment