ssh-copy-id command code example
Example 1: copy ssh key to remote server
ssh-copy-id -i ~/.ssh/mykey.pub user@host
Example 2: ssh-copy-id windows10
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh {IP-ADDRESS-OR-FQDN} "cat >> .ssh/authorized_keys"
Example 3: how to copy ssh key
ssh-copy-id -i ~/.ssh/mykey user@host