Rsync fails : no such file or directory

When i run rsync command on my linux server i got the following error

 

[root@localhost ~]# rsync -Pavzxl -e 'ssh -p22' myfiles  myuser@192.168.7.25:/home/myuser
rsync: Failed to exec ssh: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(84) [receiver=3.0.6]
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in IPC code (code 14) at io.c(600) [receiver=3.0.6]

 

Why? and how to solve it?

Tags: Rsync Linux
user image Author :   selasallen
0

This error occurs because of rsync can't able to locate the openssh client package on the machine, which means the openssh client pacakge is not installed, so we need to install it to fix the issue

yum install openssh-clients -y
user image
parthiban January 09, 2018
Add comment