Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to copy folder into AWS EC2 instance: Getting no directory found?

So I am trying to SSH into ec2 instance and copy folder from my desktop into instance.

Command Typed: scp -i -r prac1.pem SocialTrends ubuntu@[ec2-54-1....amazonaws.com]:socialtrendsApp/app

Error: Warning: Identity file -r not accessible: No such file or directory

I am typing this command from ~/SocialTrends directory which is what I am trying to copy. This folder has code files and the prac1.pem file already

What am I doing wrong please help?!

like image 828
Shaz Avatar asked Oct 17 '25 10:10

Shaz


1 Answers

You have placed the command line option -r in between -i and prac1.pem. Move it to be after prac1.pem

like image 109
John Hanley Avatar answered Oct 20 '25 01:10

John Hanley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!