SCP file to AWS EC2

This is the command use to transfer file from your local to EC2.

Command

scp -i [pem_file] [local_file] [user]@[domain]:[remote_path]

scp -i "secret.pem" sample.zip ec2-user@ec2xxx.amazonaws.com:/var/www/html/wordpress/wp-content/themes/

 

 

SCP file to AWS EC2

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.