Copy SSH Key to Server June 16, 2020 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.