What protocol and port # does SSM agent run on?

0

HI,

I'm running SSM agent in a hybrid environment behind a firewall. I like to know what port needs to be open to allow SSM to remotely manage the agent behind the firewall.

Thank you.

已提問 6 年前檢視次數 15029 次
4 個答案
2

Hi,

The SSM agent doesn't require any inbound ports to be opened, all communication from the agent is outbound HTTPS to the SSM and EC2 Messages endpoints in the region where your instances are registered:

https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent.html

Hope that helps.

/Mats

profile pictureAWS
Mats
已回答 6 年前
profile picture
專家
Kallu
已審閱 2 個月前
  • It's kind of implied but you must allow inbound traffic to port 443. I was having trouble with session manager not working unless I exposed port 22. However once I blocked 22 and opened 443 it worked.

1

Session Manager does not require any inbound ports to support any of the features it supports. Even if you make use of the SSH tunneling feature of Session Manager (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-enable-ssh-connections.html), there's no need for any inbound ports to be open.

/Mats

profile pictureAWS
Mats
已回答 4 年前
profile picture
專家
Kallu
已審閱 2 個月前
0

Thanks!

已回答 6 年前
-1

An inbound port is required to create a Systems Manager Session Manager session.
The minimum requirement seems to be port 22 inbound from the security group itself - port 22 can be happily blocked in the VPC NACL and just allowed on the Security Group from the security group to itself.

ingleno
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南