Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy files from local linux computer to amazon aws linux instance [closed]

Tags:

amazon-ec2

How do you copy files from local linux computer to amazon aws linux instance?

like image 433
Animesh Raj Jha Avatar asked Jul 26 '12 19:07

Animesh Raj Jha


1 Answers

We can do that through scp command shown below:

scp -i testkey1.pem sourcefile [email protected]:outputfile

or if you want to copy a complete directory

scp -i testkey1.pem -r sourcefolder/ [email protected]:~/

  • -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.
like image 154
Animesh Raj Jha Avatar answered Oct 21 '22 03:10

Animesh Raj Jha