I'm trying to pull a project from an AWS server, but for some reason I don't understand, rsync is not working. When I try to run this command:
vinicius@Inspiron-5537:~/Desktop/PHP$ rsync --protect-args -aP -e "ssh firstname.lastname@example.org -i ~/Desktop/Projeto.pem" "email@example.com:/var/www/projeto/" .
I get the following errors:
bash: 220.127.116.11: command not found rsync: connection unexpectedly closed (0 bytes received so far) [Receiver] rsync error: remote command not found (code 127) at io.c(226) [Receiver=3.1.1]
but the weird part is that if I ssh the server with
ssh firstname.lastname@example.org -i ~/Desktop/Projeto.pem
it logs in just fine! Can anybody tell me what is going on? How should I proceed to pull my files from the server. I don't know if it has something to do with, but the
/var/www/projeto/ being owned by root user, but all the users have at least read permission. My client is Ubuntu 16.04, and my server is Ubuntu 14.04.