- Generate the certificate on the machine you are going to login from:
ssh-keygen
- Check the certificate to make sure it was generated properly:
cat ~/.ssh/id_rsa.pub
- Copy the certificate to the remote machine:
ssh-copy-id user@host
When you execute ssh-copy-id you’ll be asked for the password of the remote host.