eclipse - 尝试通过 SSH 连接到个人 Git 服务器时 Eclipse 中出现 "Algorithm negotiation fail"错误

标签 eclipse git ssh synology

我有 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/

相关文章:

java - 选中 CheckBox 时更改 ListView 行中的文本颜色

git - merge 时避免在另一个 Git 分支中还原提交的影响

git - '致命的 : No url found for submodule path' error when trying to init submodule

ssh - 如何查看远程ubuntu服务器上正在运行哪些进程并杀死它们?

java - 如何将 Jars 添加到 Play Framework 中的类路径中?

java - 了解 VLC 中的视频何时播放完毕

java - org.apache.maven.plugins :maven-war-plugin:jar:3. 0 的 POM 丢失,没有可用的依赖信息

git - 撤消 git 存储

ajax - 当文件由另一个程序写入时,是否可以使用 perl/ajax 逐行读取文件?

ssh - gcloudcompute ssh 拒绝连接(返回代码 255)