Skip to content

Instantly share code, notes, and snippets.

@zhaohangbo
Created December 2, 2016 06:53
Show Gist options
  • Save zhaohangbo/e089f2255c14323e4438bd446bfdc1cb to your computer and use it in GitHub Desktop.
Save zhaohangbo/e089f2255c14323e4438bd446bfdc1cb to your computer and use it in GitHub Desktop.
SSH的public_key和private_key
SSH的public_key和private_key
1、private_key [on your own PC]
Stored on the computer you log in from
2、public_key [on other PCs]
Stored on the .ssh/authorized_keys file on all the computers you want to log in to.
How it works ?
When you log in to a computer,
the SSH server uses the public key to "lock" messages in a way that can only be "unlocked" by your private key
https://help.ubuntu.com/community/SSH/OpenSSH/Keys
https://en.wikipedia.org/wiki/Public-key_cryptography
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment