I'm trying to publish local files on a mac to my server using rsync and a makefile. When running the make command i get the following error:
rsync: Failed to exec ssh: No such file or directory (2)
rsync error: error in IPC code (code 14) at /SourceCache/rsync/rsync-42/rsync/pipe.c(86) [sender=2.6.9]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in IPC code (code 14) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
make: *** [deploy] Error 14
Strange thing is, the rsync command will work if i enter it directly in the shell.
Here's the interesting parts of the makefile:
USER = admin
SERVER = 92.243.xx.xx
PATH = d_ghost1/www/sub.domain.de/htdocs/
deploy:
/usr/bin/rsync -avz \
--exclude '.git*' \
--exclude '.DS*' \
--exclude '*.log' \
--exclude 'config.ini\*' \
--exclude 'backend/config.ini\*' \
./{assets,backend,frontend,templates,waffle} $(USER)@$(SERVER):$(PATH)
Can anyone make sense of this? Thanks, Lutz
I experienced the same error recently on a Ubuntu 18.04 docker image. Installing the openssh-client package, as suggested here solved issue for me.
sudo apt install -y openssh-client
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With