操作系统:Ubuntu
公共IP从我尝试ssh:153.5.57.2
安全规则:
入境:
Name
Security group rule ID
IP version
Type
Protocol
Port range
Source
Description
– sgr-01a63df5e26bc8e9a IPv4 HTTP TCP 80 0.0.0.0/0 –
– sgr-0cafa26a9ca34ccbe IPv4 SSH TCP 22 153.5.57.2/32 –
– sgr-047038a9c030dd52b IPv4 HTTPS TCP 443 0.0.0.0/0 –
出:
Name
Security group rule ID
IP version
Type
Protocol
Port range
Destination
Description
– sgr-0812dc9c3b21745e1 IPv4 All traffic All All 0.0.0.0/0 –
ACL的规则:(入境和出境)
Rule number
Type
Protocol
Port range
Source
Allow/Deny
22 SSH (22) TCP (6) 22 153.5.57.2/32 Allow
100 All traffic All All 0.0.0.0/0 Allow
\* All traffic All All 0.0.0.0/0 Deny
路线表:
Destination
Target
Status
Propagated
10.0.0.0/24 local Active No
因特网网关 是连接到我的 VPC.
子网 是连接到我的 VPC.
路线表 是与 子网.
ACL的规则 是相关的 子网.
ssh -vvv -i "my-private-key.pem" [email protected]
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 10.0.0.206 is address
debug2: ssh_connect_direct
debug1: Connecting to 10.0.0.206 [10.0.0.206] port 22.
debug1: connect to address 10.0.0.206 port 22: Connection timed out
ssh: connect to host 10.0.0.206 port 22: Connection timed out