To copy files to ec2, use the included by default scp tool in linux
Command
First follow this tutorial to isolate issues: ssh into the Ec2
scp -i ~/path/to/new-key.pem -r ./path/to/copy/from/dist/ ec2-user@xxx.ap-southeast-2.compute.amazonaws.com:~/path/on/ec2
Fixing forbidden errors
If you get forbidden errors, please ensure that you can ssh into the Ec2.
Written by
Abdur-Rahmaan Janhangeer
Chef
Python author of 7+ years having worked for Python companies around the world
Suggested Posts
How to Install Azure Cli on Linux Mint 22 / Wilma
Follow any installing azure cli on Linux mint tutorial, but, on the step below add noble main instea...
Upload your package to Pypi
To upload your project to Pypi, this assumes you have your setup.py ready cd into your package direc...
Python EFL: Building Custom Elementary Widgets (2026)
Want to create unique UI components tailored to your app’s needs? This Python EFL tutorial teaches y...