amazon web services - Unable to ssh into one EC2 instance from another in same VPC -


i trying ssh 1 ec2 instance (in-ports:22,443) db server (another ec2) in-port 3306 sg-group of first ec2 group.

ec2 instance 1: security group a- inbound: port 22 & 443, source: '0.0.0.0/0'

ec2 instance 2 (db server): security group b- inbound: port 3306, source: 'security group a'

when try ping 2 1, connection times out.

what doing wrong?

are trying ssh server 1 server 2, or trying connect database on server 2 server 1? question unclear, says want ssh port 3306, makes no sense. ssh works on port 22 default. port 3306 default mysql database port.

the way security groups configured, can ssh server 1, , can use mysql client on server 1 connect mysql database on server 2.

if want ssh server 1 server 2, need top add rule security group b: inbound: port 22, source 'security group a'.

you shouldn't worry ping. protocol ping (icmp) blocked security groups, ping isn't going useful test.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -