Generate SSH KEY by using following commands:
ssh -keygen -t rsa
Think this command not only works in Windows, but also works in Mac & Linux.
It will generate a private & public key pair in your user directory foler:
~/.ssh/
the 2 keys are store in below 2 files:
id_rsa id_rsa.pub
转载于:https://www.cnblogs.com/huanlegu0426/p/ssh-kay-gen.html