Go to ssh folder
Create an SSH key
ssh-keygen -t rsa
Go through the prompts, don’t enter a password unless you want to enter a password every time you use the key.
Copy the public key contents
# Then copy the output to clipboard
Go to Gitlab > Click on your profile > Configuration >SSH Keys. Then Click on Add New Key. Then paste the contents of the key, and remove the expiration date if you don’t want it to expire.