ssh-keygen -t ed25519 -C "[email protected]"
-t
Specifies the type of key to create.-C
Provides a new comment.
ssh-keygen -t rsa -b 4096 -C "[email protected]"
-t
Specifies type of key to create.-b
Specifies number of bits in the key to create.-C
Provides new comment.
Use selected algorithm in file name.
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
AddKeysToAgent
Specifies whether keys should be automatically added to running ssh-agent.UseKeychain
Specifies whether passphrase should be stored in keychain.IdentifyFile
Specifies 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.