Ubuntu20.04 用 xshell 连接报错“received:3,expected:20”

通过 Xshell 连接,弹出一个错误对话框,提示“服务器发送了一个意外的数据包。received:3,expected:20”的错误信息。

Ubuntu20.04 用 xshell 连接报错“received:3,expected:20”

解决方法:

在 /etc/ssh/sshd_config 最后增加以下一行

KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

然后 reload 下配置文件即可

systemctl reload sshd
或
systemctl restart sshd


手机扫描二维码访问

    本文标题:《Ubuntu20.04 用 xshell 连接报错“received:3,expected:20”》作者:极四维博客
    原文链接:https://cway.top/post/781.html
    特别注明外均为原创,转载请注明。

    分享到微信

    扫描二维码

    可在微信查看或分享至朋友圈。

    相关文章

    发表评论:

    ◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

    «    2025年5月    »
    1234
    567891011
    12131415161718
    19202122232425
    262728293031

    搜索

    控制面板

    您好,欢迎到访网站!
      查看权限

    最新留言

    文章归档

    • 订阅本站的 RSS 2.0 新闻聚合