记录使用jgitflow-maven-plugin报错The authenticity of host 'gitee.com' can't be established.连不上git

使用ssh-keygen -t rsa -C “你的email” 生成密钥和公钥,然后把.pub添加到git上面。

平时使用git sh都没问题,但是在使用jgitflow大版本的时候,疯狂报错:

Execution default-cli of goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start failed: ssh://[email protected]:22: The authenticity of host 'gitee.com' can't be established.

然后经过查询,发现konw_hosts文件缺少了git,使用下面命令加入:

ssh-keyscan gitee.com >> ~/.ssh/known_hosts
博主使用的是gitee,如果是git,换成github.com

参考:https://github.com/ome/devspace/issues/38

发布了38 篇原创文章 · 获赞 23 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/zl592886931/article/details/101534162
今日推荐