This guide explains how to generate a new SSH key using the ed25519
algorithm for secure GitHub authentication. The ed25519
algorithm is recommended for its enhanced security and better performance compared to RSA
.
ssh-keygen -t ed25519 -C "your_email@example.com"
Generating public/private ed25519 key pair.
Enter file in which to save the key (/home/development/.ssh/id_ed25519): .ssh/github_development
Enter passphrase (empty for no passphrase): ••••••••
Enter same passphrase again: ••••••••
Your identification has been saved in .ssh/github_development
Your public key has been saved in .ssh/github_development.pub
cat .ssh/github_development.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJZWx8OjEnNSq7A4k9KSJDhld/Wyqpo47lN/PoG2H9m your_email@example.com