1、生成ssh秘钥,一路回车
ssh-keygen -o
会生成两个文件id_rsa 和 id_rsa.pub
2、找到id_rsa.pub,复制到github或者其他git平台,保存,然后就可以git clone xxx,无需秘钥
window在C:UsersAdministrator.ssh目录下,Mac在 /.ssh/id_rsa
.ssh/id_rsa
参考地址;https://git-scm.com/book/zh/v2/%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84-Git-%E7%94%9F%E6%88%90-SSH-%E5%85%AC%E9%92%A5