Generate new ssh key for my github email without passphrase:
ssh-keygen -t ed25519 -C "my@email.com"
eval "$(ssh-agent -s)"
echo -e "Host github.com\n HostName github.com\n IdentityFile ~/.ssh/id_ed25519\n IdentitiesOnly yes" >> ~/.ssh/config
ssh-add -K ~/.ssh/id_ed25519
Add it to my github keys:
gh ssh-key add ~/.ssh/id_ed25519.pub
Verify GitHub is authenticated (otherwise troubleshoot here):
ssh -T git@github.com
# Hi __username__! You've successfully authenticated, but GitHub does not provide shell access.
Reference: Generate ssh key and Adding the new ssh key to github