ssh2 public key ssh-copy-id code example Example: ssh-keygen and ssh-copy-id ssh-copy-id -i ~/.ssh/mykey user@host