Skip to content

Instantly share code, notes, and snippets.

@jfengq
Created April 22, 2016 08:59
Show Gist options
  • Save jfengq/a42683cd57b874612a43575821514de4 to your computer and use it in GitHub Desktop.
Save jfengq/a42683cd57b874612a43575821514de4 to your computer and use it in GitHub Desktop.
//copy公钥到指定主机,以使得可以通过ssh命令登录该主机
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server
//ssh登录某主机
ssh root@server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment