“SSH uses public-key cryptography to authenticate the remote computer and allow it to authenticate the user, if necessary. There are several ways to use SSH; one is to use automatically generated public-private key pairs to simply encrypt a network connection, and then use password authentication to log on.”
An SSH key basically lets your computer uniquely identify itself when it connects to servers. If Github is aware of the key your computer is using, you won’t have to enter your Github username/password every time you connect.
Check for pre-existing SSH keys on your computer
Let’s see if your computer has one or more keys already installed: 12# Point the terminal to the directory that would contain SSH keys for your user account.$ cd ~/.ssh
If you get the response “No such file or directory”, skip to Generate a new SSH Key.
Otherwise, you’ll need to backup and remove your existing SSH keys.
Backup and …
change the current working directory to the local repository where you want to configure the name that is associated with your Git commits.
Set a Git username: $ git config user.name "Mona Lisa"
Confirm that you have set the Git username correctly: $ git config user.name
> Mona Lisa