Generate SSH key
First of all, open terminal window. I personally use iTerm2.
To generate SSH keys , enter the following command in the Terminal window:
You will need to answer some questions during ssh key generation process. Left destination as Default, other questions answer as you want.
Copy SSH key to clipboard
To copy public ssh key to clipboard, enter this command in the Terminal window: