aws / aws/amazon-ssm-agent

SCP "connection corrupted" on large file transfer

Open
#274 32 comments 18 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.2k
Forks
357
PR merge metrics
No merged PRs in 30d

Description

When trying to SCP from a local machine to and EC2 instance, using session manager (ProxyCommand is setup in SSH config) - it seems that I have issues sending larger files (60MB for example) and when I get to 8624KB uploaded, I get the following error.

ad packet length 2916819926.
ssh_dispatch_run_fatal: Connection to UNKNOWN port 65535: Connection corrupted
lost connection

My local connection is stable, so am just wondering if I'm hitting any hard limits ?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the SCP transfer path that uses Session Manager through the SSH ProxyCommand, then reproduce the failure with a file larger than 60 MB and observe the transfer around 8624 KB. Determine whether a documented hard limit or a connection-handling failure explains the corrupted packet; done means the cause and supported transfer behavior are clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.