explain ssh-copy-id code example
Example 1: ssh-copy-id windows
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh {IP-ADDRESS-OR-FQDN} "cat >> .ssh/authorized_keys"
Example 2: ssh-keygen and ssh-copy-id
ssh-copy-id -i ~/.ssh/mykey user@host
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh {IP-ADDRESS-OR-FQDN} "cat >> .ssh/authorized_keys"
ssh-copy-id -i ~/.ssh/mykey user@host