Here’s how to setup your SSH keys to work with Github.
Generate a key using ed25519 public-key signature system.
ssh-keygen -t ed25519
It creates a id_ed25519.pub file.
Go to Github.com and open up Settings > SSH & GPG keys.
Click New SSH key. Give a title and paste your pub key. Authorize.