What is a SSH?
SSH is the acronym of Secure Shell, which is one of the popular networking protocols.
SSH uses cryptography to authenticate and encrypt connections between devices. To be more specific, it uses asymmetric encryption. Cryptography is out of scope for the purpose of this article though.
How to Generate a SSH Key Pair?
On a Linux machine(Or Mac), you can simply run:
-t: Type of key, typically you would use rsa or ed25519-C: Comment, typically you would use your name or email. Used for identifying whose key it is.-b: Byte length of the key, optional
You will be prompted for a few questions, it’s okay to choose default for all. So you didn’t specify a custom key file name or a custom key file path, then you will be able to find the created key files: