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