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

ssh-copy-id user@servername

This assumes you already generated a key.