sftp客户端上传文件到服务器失败,报错

Server and client capabilities don't match. Client list was: aes128-cbc,3des-cbc.
Server list was chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com.

大概意思是服务器和客户端功能不匹配。客户名单是:aes128 cbc、3des cbc

服务器列表是chacha20-poly1305@openssh.com、aes128 ctr、aes192 ctr、aes256 ctr、aes128 gcm@openssh.com、aes256-gcm@openssh.com。

客户使用的服务器是one.com的托管服务器。我们的软件是在win7,win10上运行的QT开发的sftp软件。

在网上找到2个解决方案

 

1,https://stackoverflow.com/questions/33369740/ssh-protocol-error-server-and-client-capabilities-dont-match
Your server just allows certificates using ecdsa-sha2-nistp256, while your client just allows ssh-rsa and ssh-dss. Since there is no match between both lists, its not possible to connect to the server.

 

Your server wants to exchange keys explicitly using Elliptic Curve nistp256. Your client does not know about this method, therefor denies the key-exchange. you will have to update your client SSH certification methods (update ssh clientlibrary) or set your server to allow other certification methods.

您的服务器只允许使用ecdsa-sha2-nistp256的证书,而您的客户机只允许ssh rsa和ssh dss。由于两个列表之间不匹配,因此无法连接到服务器。

您的服务器希望使用椭圆曲线nistp256显式地交换密钥。您的客户不知道此方法,因此拒绝密钥交换。您必须更新客户端SSH认证方法(更新SSH clientlibrary)或将服务器设置为允许其他认证方法。

 

2

I got the same problem when I wanted to connect to the board PicoCOMA9X (NXP i.MX6) through SSH in Qt creator and could solve it in the following way:

 

Delete all of host keys generate in your board. They are usually located in /etc/ssh. You can use rm ssh_host_*.
Restart the ssh session by using /etc/init.d/S50sshd restart.
Then check the IP, username and password of the board in Qt, and test the connection.

当我想通过Qt creator中的SSH连接到电路板PicoCOMA9X(NXP I.MX6)时,也遇到了同样的问题,可以通过以下方式解决:

 

删除在板中生成的所有主机密钥。它们通常位于/etc/ssh中。您可以使用rm ssh_host_*。

使用/etc/init.d/S50sshd Restart重新启动ssh会话。

然后在Qt中检查板的IP、用户名和密码,并测试连接。

 转 SSH 连接失败 ‘SSH协议错误:服务器端和客户端参数不匹配;密钥交换失败,没有兼容的加密程序_u014213012的博客-CSDN博客

https://askubuntu.com/questions/563711/error-connecting-qt-creator-to-raspberry-pi-using-ssh

posted on 2020-04-28 14:18  七星落地  阅读(727)  评论(0编辑  收藏  举报