amazon web services - Fail to SSH AWS EC2 even when security group allows all traffic -


this current security group setting:

enter image description here

with setting ssh server.

however, if remove last 2 entries (with ssh type), cannot ssh server (always timeout).

why this? since have first entry ("all traffic" rule), thought don't need last 2 ssh rules.

http://docs.aws.amazon.com/awsec2/latest/userguide/using-network-security.html#security-group-rules

per aws, when specify security group source or destination rule, rule affects instances associated security group. incoming traffic allowed based on private ip addresses of instances associated source security group (and not public ip or elastic ip addresses).


Comments