I'm able to
ssh -i mykey.pem to EC2. I'm able to
scp -i mykey.pem to EC2. But when I try to
rsync -avz -e "ssh -i mykey.pem" I get this error:
Warning: Identity file mykey.pem not accessible: No such file or directory. Permission denied (publickey). rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]
Any suggestions what I've done wrong?