Configure Github access for your Ubuntu VPS
TL;DR
Run the following on your VPS server, to generate an ssh key to use for authenticating your server with Github
Bare in mind, that following this, will
ssh-keygen -t ed25519 -C "[email protected]"
# start the ssh-agent in the background
$ eval "$(ssh-agent -s)"
> Agent pid 59566
ssh-add ~/.ssh/id_ed25519
nano ~/.ssh/id_ed25519.pub
## Now copy paste the key and head to https://github.com/settings/keys to add it
# Now try pulling a repo. It should work
What
ssh-keygen
Generates a new SSH key on your server. You can skip this if you already have on for whatever reason. You can check by issuing ls ~/.ssh
which is the place that ssh keys get normally stored