Tutorials
This tutorial will run thorough the generation and the addition of the ssh key-pair in to your git lab account. The problem which was constant eating up the brain.
The problem faced was,
While pulling and cloning from the repository git was prompting for password.
Solution
cd ~/.ssh #navigate to .ssh folderrm * #delete everything present
ssh-add -l #list out all the keys installed currently
ssh-keygen -t rsa -C "youremail@domain.com" #replace with your email id, when prompted press enter to accept the defaults.ssh-add ~/.ssh/id_rsa #this will add the key into ssh-agentxclip -sel clip < ~/.ssh/id_rsa.pub #by-default it creates id_rsa file. if you have changed the defaults then replace that with this
with above steps now you have the key generated and copied it into the clipboard. Now, we have to tell the gitlab about our new key.