SSH协议错误:服务器和客户端功能不匹配

问题描述 投票:0回答:2

我在将Qt GUI可执行文件部署到iMx6目标时遇到了问题。我在VMWare上运行Ubuntu 12.04,并使用Qt Creator 3.1.2启动Qt可执行文件(为iMx6平台运行Qt 5.3.1交叉编译)。显示的错误消息是:

19:08:58: Could not connect to host: SSH Protocol error: Server and client capabilities don't match. Client list was: ssh-rsa,ssh-dss.
Server list was ecdsa-sha2-nistp256.
Is the device connected and set up for network access?
19:08:58: Deploy step failed.
Error while building/deploying project qtGUI (kit: Target)
When executing step 'Check for free disk space'
19:08:58: Elapsed time: 00:02.

纯粹是与网络连接有关的一些问题?或者在这里失踪的东西?

任何帮助都很明显。谢谢。

linux qt ssh qt-creator
2个回答
3
投票

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

您的服务器希望使用Elliptic Curve nistp256明确交换密钥。您的客户端不知道此方法,因此拒绝密钥交换。您必须更新客户端SSH认证方法(更新ssh clientlibrary)或将服务器设置为允许其他认证方法。


0
投票

当我想在Qt创建者中通过SSH连接到主板PicoCOMA9X(NXP i.MX6)时,我遇到了同样的问题,可以通过以下方式解决它:

  • 删除主板中生成的所有主机密钥。他们通常位于/etc/ssh。你可以使用rm ssh_host_*
  • 使用/etc/init.d/S50sshd restart重新启动ssh会话。

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

© www.soinside.com 2019 - 2024. All rights reserved.