Copy files from local linux computer to amazon aws linux instance
amazon-ec2
Solution
We can do that through scp command shown below:
scp -i testkey1.pem sourcefile ec2-user@ec2-51-122-239-158.us-west-2.compute.amazonaws.com:outputfile
or if you want to copy a complete directory
scp -i testkey1.pem -r sourcefolder/ ec2-user@51.122.444.128:~/
- -i is the option for pem file
- ec2-51-122-239-158.us-west-2.compute.amazonaws.com is the public dns address, You can get this value from aws console of your instance.
Problem
How do you copy files from local linux computer to amazon aws linux instance?