... create an SSH key pair in Linux/macOS


Step 1 - Generate SSH key pair

Open Terminal, type “ssh-keygen -t ed25519” and press Enter:

Change the default name of the SSH key pair (optional). This option can help distinguish between different keys in case of using multiple key pairs. By default, the system will save the keys to in the .ssh folder in the user's home directory.

Type the passphrase/password and press Enter. Type the passphrase/password again to confirm it and press Enter. The system will generate the key pair and display the key fingerprint and a randomart image:

Type “ls ~/.ssh” and press Enter. Two files with name “id_ed25519” (or the adapted name in case of having changed the default name) should be listed. The private key of the SSH key pair is saved in the id_ed25119 file and the public key in the id_ed25519.pub file: