- Execute the following command:
ssh-keygen -t ed25519
- Distribute the public key using the following syntax:
ssh-copy-id -i ~/.ssh/id_ed25519.pub <USER>@<HOST>
Token Description USER A valid user on the host computer. HOST The host that has an active ssh service. If ssh-copy-id command doesn't work, you can directly append the content of the id_ed25519.pub file to the ~/.ssh/authorized_keys file (i.e. create this file if it doesn't exists) of the target <USER> on the target <HOST>.
Leave a Reply