billy
billy

Reputation: 1493

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?!

Upvotes: 4

Views: 5949

Answers (1)

John Hanley
John Hanley

Reputation: 81416

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

Upvotes: 8

Related Questions