My-Ec2
my-key-pair-1
Enable
chmod 400 my-key-pair-1.pem
Default-VPC-Ec2
ssh -i "my-key-pair-1.pem" ec2-user@ec2-18-234-210-45.compute-1.amazonaws.com
sudo yum install nc
nc -zv 18.234.210.45 22 # public ip
nc -zv 10.0.8.181 22 # private ip
ssh -i "my-key-pair-1.pem" ec2-user@44.203.151.191
sudo yum install nc
nc -zv 44.203.151.191 22 # public ip
nc -zv 172.31.85.240 22 # private ip