Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

for ssh ec2 connection should there be outbound rule specified?

according to official docs – https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-rules-reference.html

only inbound TCP rule have to be added to sec group.

but how does the response come out? what protocol and port the response comes out back when i type my commands in cli terminal?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

or i need only 1 inbound rule to simply ESTABLISH connection and it works both ways – it sends and receives request, response thru ssh thru this 1 inbound rule?

>Solution :

Security Groups are stateful. They track the originating request and automatically allow responses. Per the official documentation:

Security groups are stateful—if you send a request from your instance, the response traffic for that request is allowed to flow in regardless of inbound security group rules. For VPC security groups, this also means that responses to allowed inbound traffic are allowed to flow out, regardless of outbound rules. For more information, see Security group connection tracking.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading