mac操作git [email protected]: Permission denied (publickey).

官方解决文档: 
http://git.mydoc.io/?t=154712

1)、重新生成ssh 
ssh-keygen -t rsa -C “[email protected]” 
2)、查看你的 public key 
cat ~/.ssh/id_rsa.pub 
(以ssh-rsa 开头,以账号的注册邮箱结尾的) 
3)、将它添加到码云,添加地址 https://gitee.com/profile/sshkeys 


4)、终端输入 
ssh -T [email protected] 
5)、完成啦~ 


 

猜你喜欢

转载自blog.csdn.net/qq_29058883/article/details/84709775
今日推荐