Log into server with SSH keys

Generate SSH keys

ssh-keygen -t rsa

Your keys will be created at ~/.ssh/id_rsa.pub and ~/.ssh/id_rsa

Transfer Your Public Key to the Server

ssh-copy-id root@server-ip