xxxxxxxxxx
$ sudo apt update && sudo apt upgrade
$ sudo apt-get install git
$ cd .ssh/
$ ssh-keygen -o -t rsa -C "your_github_email@example.com"
$ cat id_rsa.pub
Copy the shown key from the terminal (Ctrl + Shift + C)
Goto Github > Settings > SSH and PGP keys > "New SSH Key"
Paste the copied key, add a title and save
$ ssh -T git@github.com
>> Hi <your_username>! You've successfully authenticated, but GitHub does not provide shell access.