我正在使用Maven + gitflow来生成我的应用程序的版本,但是当我尝试开始发布时,我得到了一个错误。
命令启动发布:
mvn jgitflow:release-start错误:
Caused by: org.eclipse.jgit.errors.UnsupportedCredentialItem:
ssh://git@127.0.0.1:10022: The authenticity of host '127.0.0.1' can't be established.
RSA key fingerprint is 7e:03:51:7b:55:a5:cd:de:4c:7a:0d:1b:43:75:08:68.
Are you sure you want to continue connecting?
at com.atlassian.maven.plugins.jgitflow.util.ConsoleCredentialsProvider.get(ConsoleCredentialsProvider.java:71)如果我更改git以使用HTTP协议,生成完成即成功,则错误仅在ssh协议中出现。
ps:我已经通过公钥/私钥克隆了我的存储库。
发布于 2015-03-05 16:06:58
找到答案,在Ubuntu中禁用ssh检查
在您的~/..ssh/config中(如果这个文件不存在,只需创建它):
Host *
StrictHostKeyChecking no这将关闭您连接到的所有主机。如果只想将*应用于某些主机,则可以使用主机名模式替换*。
https://stackoverflow.com/questions/28836295
复制相似问题