Create the RSA Key Pair ssh-keygen -t rsa Copy the public key to a server ssh-copy-id user@server Test to establish SSH connection to that server without entering password ssh user@server When things went wrong, try to fix permission chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys chmod go-w ~