Skip to content

Broken pipe with start-session inactivity #626

@avylove

Description

@avylove

When using start-session, the connection will fail with a broken pipe if there is no input or output for 60 seconds.

Cannot perform start session: write tcp 1.2.3.4:45678->100.99.98.97:443: write: broken

As long as there is input or output, the connection will hold.

The shell is still active on the instance, it just seems the socket connection get's dropped.

The weird thing I found is this only seems to happen when using an SSO profile to connect and does not seem to occur when using access keys.

Client OS: Fedora 41
AWS CLI: 2.17.18
SSM plugin: 1.2.707.0

Instance OS: Rocky 9 (Official AMI with LVM),
SSM Agent: 3.3.1957.0
Same behavior on an Ubuntu instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions