SCP file to AWS EC2

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/

 

 

Write a Reply or Comment

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