Skip to content

Instantly share code, notes, and snippets.

@MarshalW
Last active May 11, 2020 10:31
Show Gist options
  • Save MarshalW/cd7646dc479ff0a58eaece32e644bfa2 to your computer and use it in GitHub Desktop.
Save MarshalW/cd7646dc479ff0a58eaece32e644bfa2 to your computer and use it in GitHub Desktop.

如何追加公钥到目标服务器

命令:

cat id_rsa.pub | ssh target_host "sudo tee -a /home/tom/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment