Ubuntu
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install git
$ git --version
RSA SSH keys
If you don't have an existing one, Create a new one
Go to
gitlab settings -> SSH keys -> Generate one -> Generating new SSH key pair ->
ssh-keygen -o -t rsa -C "your.email@example.com" -b 4096
Adding a SSH key to your GitLab account
xclip -sel clip < ~/.ssh/id_rsa.pub
Paste -> Add key
Git global setup
you can test your setup by running ssh -T git@example.com (replacing example.com with your GitLab domain) and verifying that you receive a Welcome to GitLab message.
If you get this error:-
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
Try:-
$ ssh-add
$ ssh-add -l
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install git
$ git --version
RSA SSH keys
If you already have an RSA SSH key pair to use with GitLab
ssh-keygen -o -f ~/.ssh/id_rsa
If you don't have an existing one, Create a new one
Go to
gitlab settings -> SSH keys -> Generate one -> Generating new SSH key pair ->
ssh-keygen -o -t rsa -C "your.email@example.com" -b 4096
Adding a SSH key to your GitLab account
xclip -sel clip < ~/.ssh/id_rsa.pub
Paste -> Add key
Git global setup
git config --global user.name "name" git config --global user.email "email"Create a new repository
git clone <copy_ssh_key>
you can test your setup by running ssh -T git@example.com (replacing example.com with your GitLab domain) and verifying that you receive a Welcome to GitLab message.
If you get this error:-
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
Try:-
$ ssh-add
$ ssh-add -l