For Mac users, you can generate a public key using the terminal. Here are the steps:
1. Open the Terminal window. Enter the following command `ssh-keygen -t rsa`
2. Accept the default location for saving the key.
3. Enter a passphrase and click "confirm."
4. After you have confirmed the passphrase, the key pair will be generated.
Your private key is saved to the id_rsa file in the .ssh directory.
Your public key is saved to the id_rsa.pub file in the .ssh directory.