To create your public / private key on Linux or Mac, which is a unix-based system, following these steps:
- Open terminal
type the following command
ssh-keygen -t rsa
Type enter to ignore passphrase twice
By default you keys will be saved in ~./ssh directory. id_rsa is the private key. id_rsa.pub is the public key. Place a copy of your public key on systems you wish to login through you key pair.