SSH Key

Algorithm Public key Private key
ED25519 id_ed25519.pub id_ed25519
ED25519_SK id_ed25519_sk.pub id_ed25519_sk
ECDSA_SK id_ecdsa_sk.pub id_ecdsa_sk

Generate SSH Key

ED25519

ssh-keygen -t ed25519 -C "<comment>"

Specify a passphrase

Enter passphrase (empty for no passphrase):
Enter same passphrase again:

Run agent

eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519

copy on github

cat ~/.ssh/id_ed25519.pub

test connection

ssh -T git@github.com