Or the extra simple way...
ssh-keygen
ssh-copy-id username@your_server_ip
From: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
Specify id:
ssh-copy-id -i ~/.ssh/gitlab_id_rsa spencer@greenhouse.nosmith.com