Skip to content

Instantly share code, notes, and snippets.

@kpratik2015
Created April 28, 2021 17:58
Show Gist options
  • Save kpratik2015/fa7814664ed35ec6d025cdf4597dce10 to your computer and use it in GitHub Desktop.
Save kpratik2015/fa7814664ed35ec6d025cdf4597dce10 to your computer and use it in GitHub Desktop.
Making Gitlab SSH key work

In ~/.ssh, create a config file with contents as follows:

User git
Hostname gitlab.com
IdentityFile ~/.ssh/gitlab
TCPKeepAlive yes
IdentitiesOnly yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment