首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >克隆GIT存储库时的"Auth Fail“错误

克隆GIT存储库时的"Auth Fail“错误
EN

Stack Overflow用户
提问于 2018-08-27 12:19:09
回答 1查看 1.8K关注 0票数 0

我试图使用GitEye软件将git存储库克隆到我的Mac计算机上。此存储库存在于Windows本地服务器中。我正在尝试使用SSH命令克隆存储库。

最近,我开始面临克隆操作的问题。我收到以下错误消息:

代码语言:javascript
复制
org.eclipse.jgit.api.errors.TransportException: ssh://Admin@192.168.1.106:22/D://Repository/ABC: Auth fail
    at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:221)
    at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159)
    at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:100)
    at org.eclipse.egit.ui.internal.clone.SourceBranchPage$8.run(SourceBranchPage.java:341)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://Admin@192.168.1.106:22/D://Repository/ABC: Auth fail
    at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:160)
    at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:137)
    at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:264)
    at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:162)
    at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:198)
    ... 4 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
    at com.jcraft.jsch.Session.connect(Session.java:512)
    at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:117)
    ... 8 more

我希望就这一议题提出任何建议和想法。谢谢。

编辑:

当我尝试从命令行测试SSH连接时

代码语言:javascript
复制
Octanes-ABC:~ Octane_XYZ$ ssh Admin@192.168.1.106
Connection closed by 192.168.1.106 port 22
EN

回答 1

Stack Overflow用户

发布于 2021-11-17 10:55:10

我也有同样的问题,但找不到原因。SSH成功了,本地git成功了,jgit失败了。解决办法是使用ssh-agentssh-add --也许jgit只是不喜欢带有密码的私钥。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52039226

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档