How to generate a private/pubic key from mac command line
- Open the terminal
- run command
ssh-keygen -t rsa
3. There is a prompt to enter file name
4. After the key created, you can find in the .ssh
folder in your home folder. There will be <your_file>
, this is the private key, and <your_file>.pub
which is the public key.
5. Share your public key to 3rd parties. Enjoy!!