aws / amazon-ssm-agent

An agent to enable remote management of your EC2 instances, on-premises servers, or virtual machines (VMs).
https://aws.amazon.com/systems-manager/
Apache License 2.0
1.03k stars 323 forks source link

Session Manager AWS-StartPortForwardingSessionToRemoteHost session timeout #450

Closed npassaro closed 2 years ago

npassaro commented 2 years ago

Description

When port forwarding to a remote host session manager is closing the connection in approximately 1 minute even when there are active connections.

Expected behavior

Connections are closed due to idleness when there no active connections.

Actual behavior

Connection is always closed after 1 minute

yuting-fan commented 2 years ago

Hi npassaro@,

Thank you for reporting the issue. There was an issue introduced in SSM agent version 3.1.1446.0 and SSM Session Manager plugin 1.2.323.0. Please upgrade SSM agent to version 3.1.1476.0 and Session Manager plugin to 1.2.331.0 that have this issue fixed, and try again.

Regards, Yuting

npassaro commented 2 years ago

Hi @yuting-fan thank you for the quick response! I can confirm that the issue is fixed and the session is kept open.