admin管理员组文章数量:1615372
mac系统出了新版本 13.0.1 后,androidstudio push, pull 代码一直报错:
如下:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
经过几翻操作,重新生成id_rsa.pub 也是不行,
最后发现是rsa加密方式的问题,苹果mac升级系统后,默认不支持rsa方式加密git通讯,
所以如果要继续使用这个pub文件加密的方式,则要手动添加cofig配置文件来支持:
如下在 ~/.ssh/ 目录下新增config文件,
然后在 ~/.ssh/config 中新增:
Host *
PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa
版权声明:本文标题:Mac电脑升级13系统后,git clone 代码报错,mac升级后git ssh用不了 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1728710583a1170232.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论