Reputation: 1493
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
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