4

Mac笔记本eclipse使用git pull操作时报错

 1 year ago
source link: https://www.wencst.com/archives/2343
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Mac笔记本eclipse使用git pull操作时报错

作者: wencst 分类: JAVA 发布时间: 2023-01-13 19:57 阅读: 11 次

Mac:13.0.1

eclipse:2022-06 (4.24)

git:2.38.1

在eclipse的工程中,点击右键,使用git pull操作,会提示:

` Failed (ConnectException) to execute: Connection refused`

意思是git服务器无法连接

1.首先排查网络原因,使用shell,同一个目录,执行git pull 操作,成功

2.排查eclipse问题,在eclipse中,使用git的其他操作正常

3.排查eclipse网络配置

img_63c1457124844.png

切换provider,依然报错

img_63c145b340db1.png

在这里增加ssh的秘钥,恢复正常

更新系统后,mac自带openssh升级到9.0版本(ssh -V确认),rsa加密废弃,不再提供认证。

ssh-keygen -t ed25519

有些同学可能多个系统共用一套密钥,切换比较麻烦,这种情况请在.ssh/config文件加上以下内容启用rsa。

Host *  
    PubkeyAcceptedKeyTypes +ssh-rsa

我的操作系统已经调整,但eclipse并没有随之更新,因此会报错。

参考:https://confluence.atlassian.com/bitbucketserverkb/ssh-rsa-key-rejected-with-message-no-mutual-signature-algorithm-1026057701.html

如果文章对您有用,扫一下支付宝的红包,不胜感激!

欢迎加入QQ群进行技术交流:656897351(各种技术、招聘、兼职、培训欢迎加入)

Leave a Reply Cancel reply

You must be logged in to post a comment.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK