DEV Community

Discussion on: Explain Private and Public keys (SSH) Like I'm Five

Collapse
 
nestedsoftware profile image
Nested Software • Edited

I think your understanding is correct. For example, on github, you can paste your public ssh key into a form on the github web site. This allows you to upload your git repositories from your computer onto github - but only if the computer you're using has the corresponding private key. Note that the key pair - the private and public key - have to be created together at the same time. The public key can be shared, but it is critical that the private key is safe and no one but the authorized user has access to it.