Content
- GitLab SSH Keys Setup
- Clone a GitLab Repository Using SSH
GitLab SSH Keys Setup
-
Enter the following using GitBash:
ssh-keygen -t ed25519 -C "acetiercel@yahoo.com"
-
Copy the public key to clipboard.
cat ~/.ssh/id_ed25519.pub | clip
-
Paste the public key in your GitLab account.
- Go to Profile → Settings → SSH Keys
- Enter the public key and Save
-
Test that SSH keys are setup correctly. (replacing gitlab.com with your GitLab’s instance domain):
ssh -T git@gitlab.com
Clone a GitLab Repository Using SSH
- Get access permissions to a GitLab repository. You’ll have access permissions if you are a member.
- Clone the repository:
git clone git@gitlab.com:madbarua/externals.git
- Succeeding git operations on this ssh-cloned repository won’t require user/name passwords.