来自macbook的Ssh连接失败。这在试图迁移到Centos 8之后停止工作。
MacBook-Pro:~ $ ssh -Y -vvv xxxxxxx@152.3.36.72 -p 32
OpenSSH_8.6p1, LibreSSL 2.8.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug2: resolve_canonicalize: hostname 152.3.36.72 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/terry/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/terry/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: ssh_connect_direct: entering
debug1: Connecting to 152.3.36.72 [152.3.36.72] port 32.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: connect to address 152.3.36.72 port 32: Connection refused
ssh: connect to host 152.3.36.72 port 32: Connection refused发布于 2021-12-23 08:16:36
152.3.36.72 port 32: Connection refused表示主机152.3.36.72没有在端口32上运行ssh服务器。
在升级系统时,可能会用新的默认配置覆盖具有非标准端口32的旧ssh配置。尝试连接到默认端口22。
另一种可能是,防火墙配置为阻止访问并返回无法访问的ICMP端口。
https://unix.stackexchange.com/questions/683585
复制相似问题