首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在更新Fedora 35之后,带有ProxyCommand的SSH失败

在更新Fedora 35之后,带有ProxyCommand的SSH失败
EN

Server Fault用户
提问于 2022-01-07 21:36:22
回答 1查看 629关注 0票数 0

我使用的命令如下所示:

代码语言:javascript
复制
ssh -o ProxyCommand='ncat --proxy-type socks5 --proxy 127.0.0.1:3744 %h %p' me@example.com

由于更新到Fedora 35,连接在错误消息中失败。

代码语言:javascript
复制
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

我确认,通过在web浏览器中使用代理,代理仍然有效。到服务器的连接仍然可以使用另一台计算机或在容器中使用Fedora 34。在容器中使用Fedora 35时,它会失败。我还可以用不同的服务器再现结果。

冗长的输出似乎没有帮助

代码语言:javascript
复制
OpenSSH_8.7p1, OpenSSL 1.1.1l  FIPS 24 Aug 2021
debug1: Reading configuration data /home/me/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug1: configuration requests final Match pass
debug1: re-parsing configuration
debug1: Reading configuration data /home/me/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug1: Executing proxy command: exec ncat -v --proxy-type socks5 --proxy 127.0.0.1:3744 example.com 22
debug1: identity file /home/me/.ssh/id_rsa type 0
debug1: identity file /home/me/.ssh/id_rsa-cert type -1
debug1: identity file /home/me/.ssh/id_dsa type -1
debug1: identity file /home/me/.ssh/id_dsa-cert type -1
debug1: identity file /home/me/.ssh/id_ecdsa type -1
debug1: identity file /home/me/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/me/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/me/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/me/.ssh/id_ed25519 type -1
debug1: identity file /home/me/.ssh/id_ed25519-cert type -1
debug1: identity file /home/me/.ssh/id_ed25519_sk type -1
debug1: identity file /home/me/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/me/.ssh/id_xmss type -1
debug1: identity file /home/me/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.7
Ncat: Version 7.91 ( https://nmap.org/ncat )
Ncat: Connected to proxy 127.0.0.1:3744
Ncat: No authentication needed.
Ncat: Host example.com will be resolved by the proxy.
Ncat: connection succeeded.
Ncat: 0 bytes sent, 0 bytes received in 0.04 seconds.
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
EN

回答 1

Server Fault用户

回答已采纳

发布于 2022-01-24 13:10:55

有同样的问题。在fedora 35中的nmap-ncat (即nmap-ncat-7.91-8.fc35.x86_64)似乎有一些问题。

作为一项工作,您可以使用netcat-1.218-2.fc35.x86_64

或者直接安装rpm -vhU https://nmap.org/dist/ncat-7.92-1.x86_64.rpm

来自https://nmap.org/download.html

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

https://serverfault.com/questions/1089364

复制
相关文章

相似问题

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