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