嘗試ssh來了解AWS服務設置我自己的VPC與IPV4/V6。 子網和安全組的設置太(HTTP/S + SSH對V4開/ V6)AWS EC2甚至不能用端口22開啓
當我嘗試ssh -vvv -i myKey.pem [email protected]
我:
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug2: resolving "ec2-35-157-94-119.eu-central-1.compute.amazonaws.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to ec2-35-157-94-119.eu-central-1.compute.amazonaws.com [35.157.94.119] port 22.
debug1: connect to address 35.157.94.119 port 22: Operation timed out
ssh: connect to host ec2-35-157-94-119.eu-central-1.compute.amazonaws.com port 22: Operation timed out
如果嘗試aws ec2 describe-instances --instance-ids i-09e2830xxxxxx
或與儀表板我可以看到我的實例並用Private and Public IPv4/v6
存在,並且Public DNS
任何想法,爲什麼跑?
您是否在安全組中打開了端口22? –
是=> SSH TCP 22 0.0.0.0/0 – Ragnar