【发布时间】:2019-02-01 23:41:00
【问题描述】:
我正在尝试使用 GitEye 软件将 git 存储库克隆到我的 Mac 机器上。此存储库存在于 Windows 本地服务器上。我正在尝试使用 SSH 命令克隆存储库。
最近,我开始面临克隆操作的问题。我收到以下错误消息:
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 连接时
Octanes-ABC:~ Octane_XYZ$ ssh Admin@192.168.1.106
Connection closed by 192.168.1.106 port 22
【问题讨论】:
-
您是否创建了 SSH 密钥并上传了公钥?
-
我建议不要将您的错误作为屏幕截图发布。而是使用
code块。它是可搜索的,并且可以更容易地引用, -
@Clijsters 谢谢你的回复。我已经用错误堆栈跟踪更新了帖子。
-
@Code-Apprentice 我没有在我的服务器上设置任何 SSH 密钥。但我能够更早地从我的服务器访问这个 repo。在哪里可以检查我的 Windows SBS 服务器和 mac 机器上的 SSH 密钥设置?