错误提示:git
Permission denied (publickey).ssh
fatal: Could not read from remote repository.google
Please make sure you have the correct access rights3d
and the repository exists.cdn
沃德天,谁动我电脑了,昨天还好好的~~~~~blog
昨天->操做过id_rsa_pub文件rem
是谁???这么不要脸it
好像是我。。。io
好吧从新配置下公钥:class
执行:ssh-keygen -t rsa -C “邮箱地址”
而后出现: Enter file in which to save the key (/Users/wyd/.ssh/id_rsa):(公钥名称,默认是 id_rsa.pub)
以前链接别的从新生成了id_rsa.pub,就是没有写名字一路回车爽啊,以前的id_rsa.pub被新的覆盖了,以后杯具就是没法链接git了
因此咱们这里写test(我是随便起的,大家随意)
而后一路回车吧
来看生成的文件:
最后关键的一步:将本身起的名字加入到ssh中
ssh-add ~/.ssh/test
而后复制test.pub内容到git的ssh文件中,这样就妥了
插曲:记得去掉文件的换行,怎么换——>google