从我的专用服务器克隆git repo时遇到了一些麻烦,
14:19:28.522: cd C:\Users\admin\AndroidStudioProjects
14:19:28.523: git -c core.quotepath=false clone --progress git@host:git.git zaezaezaeaeae
Cloning into 'zaezaezaeaeae'...
java.io.IOException: There was a problem while connecting to host:port
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:171)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:137)
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.
问题是我可以使用命令行(git clone)克隆我的repo但是在IDE上我不能,当我在我的sshd_config上注释这一行时
#Ciphers aes256-ctr,aes128-ctr
#MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
#KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
Android工作室的结账是成功的,任何人都知道如何告诉android-studio接受或添加额外的crypt mod或类似的东西?或者我完全错了