Here’s the command to copy a secret key to a remote server.

<pre lang="bash">
ssh-copy-id user@servername

This assumes you already generated a key.