关于git推送报错Please make sure you have the correct access rights
不知道什么原因,重新配置ssh解决
删除本地秘钥
C:\Users\Administrator\.ssh生成秘钥
1
2
3
4
5$git config --global user.name "配置用户名"
$git config --global user.email "邮箱"
$ssh-keygen -t rsa -C "上面填写的邮箱"在
.ssh文件夹下找到生成的两个文件,id_rsa为秘钥,id_rsa.pub为公钥,在github设置里新建SSH keys,将公钥复制进去。重新推送
署名-非商业性使用本文采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 ZEKALRYN'S BLOG!
评论
