![](/img/trans.png)
[英]aws ec2 ssh error: `ssh: connect to host x port 22: Operation timed out`
[英]AWS EC2: ssh: connect to host 10.0.0.206 port 22: Connection timed out
操作系统: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
Internet Gateway连接到我的VPC 。
子网附加到我的VPC 。
路由表与子网相关联。
ACL 规则与子网相关联。
ssh -vvv -i "my-private-key.pem" ec2-user@10.0.0.206
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
我真的很痛苦,我真的很痛苦......我尝试了很多,但从早上开始我仍然有同样的错误,我的一天被毁了......
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.