scp (secure copy) to ec2 instance without password
scp -i /path/to/your/.pemkey -r /copy/from/path user@server:/copy/to/path
I figured it out. I had the arguments in the wrong order. This works:
scp -i mykey.pem somefile.txt [email protected]:/