【问题标题】:SSH Protocol error: Server and client capabilities don't matchSSH 协议错误:服务器和客户端功能不匹配
【发布时间】:2015-10-27 13:46:28
【问题描述】:

我在将我的 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


    【解决方案1】:

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

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

    【讨论】:

      【解决方案2】:

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

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

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

      【讨论】:

        猜你喜欢
        • 2012-04-20
        • 1970-01-01
        • 1970-01-01
        • 2020-05-28
        • 1970-01-01
        • 2014-07-27
        • 2012-02-18
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多