- Generate SSH key with passphrase and the filename:
ssh-keygen -t ed25519 -C "[email protected]"
- Go to the
Settings > SSH and GPG keys
page of Github - Click
New SSH key
- Copy the SSH key file to your clipboard, here the public key file is in
~/.ssh/id_ed25519.pub
:
cat ~/.ssh/id_ed25519.pub
- Paste the SSH key in Github form.
What is a Github form? This documentation doesn't help me. The link Adding a new SSH key is for Windows and I'm using Ubuntu 22.04. This page was the top link for Ubuntu 22.04.