SCP upload speed is extremely slow

0

I'm new to AWS. I started AWS in January. I start using lightsail, set up ssh key to local computer and uploaded files via scp for migrating website to lightsail. It was too slow, the upload speed is around 5-10 files per second. FYI my browser's network speed is 150Mbps for upload, 300Mbps for download, and for Ping, 10ms and 60ms respectively.

OMAL
asked 2 months ago133 views
1 Answer
1
Accepted Answer

SCP upload speeds to AWS Lightsail can be slow due to the inherent overhead of the SSH protocol used by SCP, especially when transferring a large number of small files. Incorporating Amazon S3 into your migration process offers a significant speed advantage. By first uploading your website's files to an S3 bucket, you benefit from S3's optimized data transfer capabilities. After securely storing your files in S3, you can efficiently transfer them to your Lightsail instance, bypassing the slower SCP speeds. This approach not only leverages AWS's robust infrastructure for faster uploads but also simplifies the migration process. Further optimizing the transfer process through alternative methods like rsync, compressing files, and adjusting SCP's settings can additionally mitigate these issues.

Uploud files to an Amazon Lightsails bucket using AWS CLI

profile picture
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions