Centos 7.9 ssh 连接 macbook 失败

Centos 7.9 ssh 连接 macbook 失败

MacBook 的 SSH 连接失败。尝试迁移到 Centos 8 后,此连接停止工作

MacBook-Pro:~ $ ssh -Y -vvv [email protected] -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

答案1

152.3.36.72 port 32: Connection refused表示主机152.3.36.72没有ssh在端口 32 上运行的服务器。

ssh当您升级系统时,具有非标准端口 32 的旧配置可能会被新的默认配置覆盖。尝试连接到默认端口22

另一种可能性是您将防火墙配置为阻止访问并返回 ICMP 端口无法访问。

相关内容