打开终端查看是否已经存在SSH密钥:cd ~/.ssh 输出:No such file or directory表示没有
终端输入:
ssh-keygen -t rsa
根据提示生成key。
cd /Users/xxx/.ssh/ id_rsa.pub中的为public_key