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

2836 views amazon-web-services

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@[]: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?!

answered question

1 Answer


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

posted this

Have an answer?


Please login first before posting an answer.