git创建公钥私钥对
1.git clone 发现报错
$ git clone git@github.com:Volcaner/learngit.git
2.创建公钥私钥对
$ ssh-keygen -t rsa -b 4096 -C "git邮箱@xxx.com"
3.产生公钥私钥对
4.拷贝公钥私钥对
$ cat ~/.ssh/id_rsa.pub
5.继续 clone
$ git clone git@github.com:Volcaner/learngit.git
$ git clone git@github.com:Volcaner/learngit.git
$ ssh-keygen -t rsa -b 4096 -C "git邮箱@xxx.com"
$ cat ~/.ssh/id_rsa.pub
$ git clone git@github.com:Volcaner/learngit.git