How to generate a private/pubic key from mac command line

  1. Open the terminal
  2. 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!!

Links:

https://www.ssh.com/academy/ssh/keygen

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *