我有 Eclipse Juno、带有 Git 服务器的 Synology Server DS213+。我正在尝试将项目从 Git 服务器 checkout 到工作区,当我在 Eclipse 中使用 EGit 时出现此错误:
org.eclipse.jgit.api.errors.TransportException: ssh://[route]/volume1/Git/project.git: Algorithm negotiation fail
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:223)
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159)
at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:99)
at org.eclipse.egit.ui.internal.clone.SourceBranchPage$8.run(SourceBranchPage.java:324)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://[route]/volume1/Git/project.git: Algorithm negotiation fail
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:136)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:202)
... 4 more
Caused by: com.jcraft.jsch.JSchException: Algorithm negotiation fail
at com.jcraft.jsch.Session.receive_kexinit(Session.java:583)
at com.jcraft.jsch.Session.connect(Session.java:320)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
... 8 more
[route] 是正确的并且在其他 git 软件中运行良好
最佳答案
我发现这个博客提供了解决方案:
http://blog.millard.org/2014/11/repair-synology-dsm51-for-use-as-linux.html
使用 WinSCP http://winscp.net/eng/download.php我修改了 sshd_config 并在 Synology 控制面板中重新启动 ssh。
关于eclipse - 尝试通过 SSH 连接到个人 Git 服务器时 Eclipse 中出现 "Algorithm negotiation fail"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29797017/