2 examples for ssh-copy-id
# Copy local ssh key to authorized_keys file on remote machine.
ssh-copy-id user@example.com
# upload the key file ~/.ssh/id_rsa via ssh on port 80 to server
ssh-copy-id -i ~/.ssh/id_rsa example.com
# Copy local ssh key to authorized_keys file on remote machine.
ssh-copy-id user@example.com
# upload the key file ~/.ssh/id_rsa via ssh on port 80 to server
ssh-copy-id -i ~/.ssh/id_rsa example.com