Go to ssh folder
Create an SSH key
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
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.