ssh-keygen -t ed25519 -C "your_email@example.com"
-tSpecifies the type of key to create.-CProvides a new comment.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
-tSpecifies type of key to create.-bSpecifies number of bits in the key to create.-CProvides new comment.
Use selected algorithm in file name.
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
AddKeysToAgentSpecifies whether keys should be automatically added to running ssh-agent.UseKeychainSpecifies whether passphrase should be stored in keychain.IdentifyFileSpecifies file authentication identity is read from.
Use selected algorithm in file name.
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
Enter passphrase again when prompted.