You can setup your gitlab account with SSH Key
Open Git Bash in Windows OS OR in Mac OS open Terminal
Run below Command (Replace your mail address)
ssh-keygen -t rsa -C "firstname.lastname@example.org" -b 4096
It will ask few questions. You can skip it by hitting enter key.
Run the below command to read SSH Key
Copy your SSH key until your email address.
- Open you gitlab Account
- Go to Settings
- Click on 'SSH Keys' (Left Bottom Side)
- Paste SSH Key
- If you want to set expiry of your SSH Key then you can set an expiry date.
- Then Click on 'Add Key' Button