Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse &引用;“认证失败”;克隆GIT存储库时出错_Eclipse_Git_Macos_Egit - Fatal编程技术网

Eclipse &引用;“认证失败”;克隆GIT存储库时出错

Eclipse &引用;“认证失败”;克隆GIT存储库时出错,eclipse,git,macos,egit,Eclipse,Git,Macos,Egit,我正在尝试使用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.

我正在尝试使用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密钥并上载了公钥?我建议不要将错误作为屏幕截图发布。而是使用
code
块。它可以搜索,也可以更容易地引用,@Clijsters感谢您的回复。我已经用错误堆栈跟踪更新了帖子。@Code peedient我还没有在服务器上设置任何SSH密钥。但我可以从我的服务器访问这个回购协议。在哪里可以检查Windows SBS服务器和mac计算机上的SSH密钥设置?
Octanes-ABC:~ Octane_XYZ$ ssh Admin@192.168.1.106
Connection closed by 192.168.1.106 port 22