ssh-keygen -t rsa -C "[email protected]"
输入完毕指令,输入密码。然后会在 /z/.ssh/文件夹下生成一个私钥rsa_id、公钥rsa_pub。
使用下列命令把生成的公钥复制到git网站SSL设置里面。
cat ~/.ssh/id_rsa.pub | pbcopy
ssh-keygen -t rsa -C "[email protected]"
输入完毕指令,输入密码。然后会在 /z/.ssh/文件夹下生成一个私钥rsa_id、公钥rsa_pub。
使用下列命令把生成的公钥复制到git网站SSL设置里面。
cat ~/.ssh/id_rsa.pub | pbcopy