在嘗試建立 IKEv2 VPN 伺服器後,我失去了透過 ssh 連接到我的伺服器的能力(ssh 只是超時)。我能夠使用 Hetzner 控制台進入機器(使用 ubuntu)並重置所有 ufw 規則。
我嘗試 ssh 連接到伺服器的日誌如下:
% ssh -vvv [email protected]
OpenSSH_8.6p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/yurystepanov/.ssh/config
debug1: /Users/yurystepanov/.ssh/config line 11: Applying options for *
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 x.x.x.x is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/yurystepanov/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/yurystepanov/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: ssh_connect_direct: entering
debug1: Connecting to x.x.x.x [x.x.x.x] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
connect to address x.x.x.x port 22: Operation timed out
hetzner 技術人員說我的伺服器之前沒有其他防火牆 有什麼方法可以調試來自內部 ssh 機器或外部的連接過程嗎?像 mb 一樣,除了 ubuntu 防火牆(ufw)之外,還有其他方法可以阻止我的 ssh 連接,謝謝大家!