Categories
Linux Security Tech

How to generate and install ed25519 SSH keys on Linux (CentOS 7)

generate and install ed25519 SSH keys

The following command generates a public and private ed25519 key pair.

ssh-keygen -t ed25519

Enter a password to protect the key if you wish then hit enter.

Private and public keys have now been generated and are stored in the location listed

Next step is to install the private key on the server

 ssh-copy-id andre@localhost

Verify fingerprint to make sure you are connecting to the intended server.

Enter your password.

This public key has now been added to the server.