【发布时间】:2018-08-04 00:53:42
【问题描述】:
我已设置 SSH 以从 Android Studio (3.0.1 - Build #AI-171.4443003)和 IntelliJ(2017.3.4 - Build 173.4548.28),直到昨天(2018 年 2 月 22 日)一切正常。
突然之间(2018 年 2 月 23 日),当我尝试在 IntelliJ 或 Android Studio 中向 Github 推送或拉取任何内容时,它失败了,并且我在“版本控制控制台”中收到以下消息:
16:41:14.159: [onebusaway-android] git -c core.quotepath=false pull --progress --no-stat -v --progress upstream master
java.io.IOException: There was a problem while connecting to github.com:22
at com.trilead.ssh2.Connection.connect(Connection.java:791)
at com.trilead.ssh2.Connection.connect(Connection.java:577)
at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:172)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:138)
Caused by: java.io.IOException: Key exchange was not finished, connection is closed.
at com.trilead.ssh2.transport.KexManager.getOrWaitForConnectionInfo(KexManager.java:92)
at com.trilead.ssh2.transport.TransportManager.getConnectionInfo(TransportManager.java:230)
at com.trilead.ssh2.Connection.connect(Connection.java:743)
... 3 more
Caused by: java.io.IOException: Cannot negotiate, proposals do not match.
at com.trilead.ssh2.transport.KexManager.handleMessage(KexManager.java:413)
at com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:754)
at com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:469)
at java.lang.Thread.run(Thread.java:745)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
这在两台不同的机器上同时发生,一台使用 Windows 7 Enterprise,另一台使用 Windows 10。
为什么突然停止工作,我该如何解决?
【问题讨论】:
标签: git android-studio github intellij-idea ssh