There are the steps to take to set up SSH keys with Github.
First — Why?
There are two main ways of working with repos using the terminal. One way is to HTTPs and another is to use SSH keys.
Once you set up using SSH keys you no longer need to enter a password every time you want to, for instance, clone a repository. This speeds up your development workflow.
Another benefit is that using SSH keys is generally seen as being more secure than using passwords, because a bot can use a ‘brute force’ approach to try and guess your password.
Steps to take
Generate key-pair on client
ssh-keygen -C “firstname.lastname@example.org”
Copy * * * PUBLIC * * * KEY:
pbcopy < ~/.ssh/id_rsa_repo123.pub
Use Github interface to add key
On client, add ***PRIVATE*** identity as ‘current’ private want to use
Use Github cli to clone repository on client
git clone email@example.com:SamOllason/repo123.git
Please see my introduction to working with SSH here.