CommandLine : How to generate a public key with my mac ? For do this you need use the command : ssh-keygen Example: Observation: all keys are in ~/.ssh directory.