我目前正在使用Aptana Studio 3.6.1(使用一些PHP語法修復的自定義構建)。我使用SFTP將項目中的文件上傳到測試站點,使用發佈工具(項目頂部的上傳/下載箭頭)。Aptana SFTP密鑰交換
最近,我變得無法上傳文件。 WinSCP能夠做到這一點,並且在使用PuTTY或普通的舊式OpenSSH時,我可以毫無問題地進入服務器。集錦,然而,拋出一個適合:
Failed to upload file
Establishing SFTP connection failed: No suitable key exchange algorithm could be agreed.
No suitable key exchange algorithm could be agreed.
在auth.log相應的錯誤(與LogLevel的DEBUG1):
Oct 26 14:42:42 dedi sshd[13690]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8
Oct 26 14:42:42 dedi sshd[13690]: debug1: inetd sockets after dupping: 3, 3
Oct 26 14:42:42 dedi sshd[13690]: Connection from [My IP] port 24321 on [Server IP] port 22
Oct 26 14:42:42 dedi sshd[13690]: debug1: Client protocol version 2.0; client software version edtFTPjPRO-4.1.0
Oct 26 14:42:42 dedi sshd[13690]: debug1: no match: edtFTPjPRO-4.1.0
Oct 26 14:42:42 dedi sshd[13690]: debug1: Enabling compatibility mode for protocol 2.0
Oct 26 14:42:42 dedi sshd[13690]: debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Debian-2
Oct 26 14:42:42 dedi sshd[13690]: debug1: permanently_set_uid: 102/65534 [preauth]
Oct 26 14:42:42 dedi sshd[13690]: debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256 [preauth]
Oct 26 14:42:42 dedi sshd[13690]: debug1: SSH2_MSG_KEXINIT sent [preauth]
Oct 26 14:42:42 dedi sshd[13690]: debug1: SSH2_MSG_KEXINIT received [preauth]
Oct 26 14:42:42 dedi sshd[13690]: debug1: kex: client->server 3des-cbc hmac-sha1 none [preauth]
Oct 26 14:42:42 dedi sshd[13690]: debug1: kex: server->client 3des-cbc hmac-sha1 none [preauth]
Oct 26 14:42:42 dedi sshd[13690]: fatal: Unable to negotiate a key exchange method [preauth]
我要指出,我已經用的sshd_config打亂周圍,以修復Aptana使用的某些密碼套件未在服務器上設置的早期錯誤。我懷疑這個問題與密鑰交換密碼套件有關,但我不確定如何調試該問題以確定要添加哪些套件。
$ uname -a && lsb_release -a
Linux dedi 3.14-2-amd64 #1 SMP Debian 3.14.15-2 (2014-08-09) x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (jessie)
Release: testing
Codename: jessie
謝謝。事實證明,客戶端只支持diffie-hellman-group1-sha1。 – 2014-10-27 19:44:57
如果有人像我一樣絆倒了這一點,上面的KexAlgorithms對於Android應用ES文件瀏覽器至少需要使用JSCH-0.1.44(Java SSH2客戶端)的版本3.2.3是必需的。 – micah94 2014-11-25 04:52:36
KexAlgorithms中列出的這些鍵優先嗎? – 2015-08-01 20:04:14