Created
December 2, 2016 06:53
-
-
Save zhaohangbo/e089f2255c14323e4438bd446bfdc1cb to your computer and use it in GitHub Desktop.
SSH的public_key和private_key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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