Centos
來自macbook的Centos 7.9 ssh連接失敗
來自 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
152.3.36.72 port 32: Connection refused
表示主機152.3.36.72
沒有ssh
在埠 32 上執行的伺服器。當您升級系統時,
ssh
具有非標準埠 32 的舊配置可能被新的預設配置覆蓋。嘗試連接到預設埠22
。另一種可能性是您將防火牆配置為阻止訪問並返回無法訪問的 ICMP 埠。