首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >不能使用我的ubuntu服务器。"kex_exchange_identification:横幅行包含无效字符“

不能使用我的ubuntu服务器。"kex_exchange_identification:横幅行包含无效字符“
EN

Stack Overflow用户
提问于 2021-03-18 05:51:00
回答 1查看 15.8K关注 0票数 0

当我想对我的服务器使用VScode远程SSH时,将提示以下错误:

...kex_exchange_identification:横幅行包含无效字符.

一开始,我认为这是我的VSCode的一个错误,但是我尝试了PowerShell中最简单的SSH命令,它仍然发生。

下面是一些日志:

代码语言:javascript
运行
复制
(base) PS C:\Users\37097> ssh wsco@114.213.208.99 -p 1260 -v                                           OpenSSH_8.2p1, OpenSSL 1.1.1f  31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 114.213.208.99 [114.213.208.99] port 1260.
debug1: Connection established.
debug1: identity file /c/Users/37097/.ssh/id_rsa type -1
debug1: identity file /c/Users/37097/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/37097/.ssh/id_dsa type -1
debug1: identity file /c/Users/37097/.ssh/id_dsa-cert type -1
debug1: identity file /c/Users/37097/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/37097/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/37097/.ssh/id_ecdsa_sk type -1
debug1: identity file /c/Users/37097/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /c/Users/37097/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/37097/.ssh/id_ed25519-cert type -1
debug1: identity file /c/Users/37097/.ssh/id_ed25519_sk type -1
debug1: identity file /c/Users/37097/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /c/Users/37097/.ssh/id_xmss type -1
debug1: identity file /c/Users/37097/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.2
kex_exchange_identification: banner line contains invalid characters

我甚至在另一台ubuntu机器上试过,但也有同样的问题。

我试着用谷歌搜索了几天,但这些都解决不了我的问题。

EN

回答 1

Stack Overflow用户

发布于 2022-01-04 22:23:33

我看这是没有回复,希望你能同时修复它。

为其他人寻找

kex_exchange_identification:横幅行包含无效字符

注意,ssh在错误地连接到webserver (https)而不是sshd时报告了此错误。

检查sshd是否正在侦听所连接的主机/端口,例如使用netstat -anp

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66685456

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档