To generate a new key pair using ed25519, type this command:
ssh-keygen -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C “demo comment here”
You can specify a password or have the key password-less.
——
To copy the new key to server2 as an example type this command: