cd ~/.ssh ssh-keygen -t rsa -C "username@mail.com" -b 4096
vi ~/.ssh/config Host gitlab.youdomain.com User username Port 22 IdentityFile ~/.ssh/id_rsa
git config --global user.name "username" git config --global user.email "username@mail.com"
xclip -sel clip < ~/.ssh/id_rsa.pub
ssh -T git@gitlab.youdomain.com -p 22
git clone git@gitlab.youdomain.com:groupname/projectname.git