How to Add SSH Key to GitLab?
It’s very important to add an SSH key to GitLab to work on a remote project what is hosted on GitLab. Let see how we can do that –
We working on a Mac to set up this key –
1. Go to your terminal and write the command below –
ssh-keygen -t rsa -C "[email protected]"
Press Enter (to make a file with the default name)
Type ‘y’ (to overwrite
Press Enter (to skip passphrase)
2. To see the generated key type :
Copy the key and paste it to your GitLab profile.
Now start pull / push / clone etc. commands.