Skip to content

Git client SSH Configuration on Ubuntu

Install git

1
$ sudo apt install git

setup git

1
2
3
4
5
6
$ git config --global user.name "Tatsuro Homma"
$ git config --global user.email "tato.flam@gmail.com"
$ git config --global user.name
Tatsuro Homma
$ git config --global user.email
tato.flam@gmail.com

SSH key configuration

1
$ ssh-keygen -t rsa -C "tato.flam@gmail.com"

confirm key

1
2
$ ls .ssh/
id_rsa  id_rsa.pub

Then copying content in “id_rsa.pub” to settings > SSH keys.

Check SSH configuration

1
2
$ ssh -T git@gitlab.fabcloud.org
Welcome to GitLab, @<git name>!

Then I can clone git repository in gitlab.fabcloud.org

Trouble shooting

If you cannot access to remote repository, see Git - change remote URL or search error message on internet.


Last update: April 9, 2021