copy ssh key windows 10 code example
Example 1: copy my ssh key
clip < ~/.ssh/id_rsa.pub
Example 2: copy public key mac
pbcopy < ~/.ssh/id_rsa.pub
Example 3: ssh-copy-id windows10
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh {IP-ADDRESS-OR-FQDN} "cat >> .ssh/authorized_keys"
Example 4: copy ssh key from windows to linux
scp ~/.ssh/id_rsa.pub [linux_user]@[linux_IP/linux_hostname]:~/.ssh/authorized_keys