ssh - scp (secure copy) to ec2 instance without password -


i have ec2 instance running (freebsd 9 ami ami-8cce3fe5), , can ssh using amazon-created key file without password prompt, no problem.

however, when want copy file instance using scp asked enter password:

scp somefile.txt -i mykey.pem root@my.ec2.id.amazonaws.com:/  password: 

any ideas why happening/how can prevented?

i figured out. had arguments in wrong order. works:

scp -i mykey.pem somefile.txt root@my.ec2.id.amazonaws.com:/ 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -