How to fix “rsync: Failed to exec ssh: No such file or directory” ?

I was getting following error while trying to copy one file to another server using rsync

As you can see the error message is 

This error means rsync is not able to locate the openssh client on the machine. 

How to fix “rsync: Failed to exec ssh: No such file or directory”? 

This can be fixed by installing the openssh client packages .  On a Centos machine , you can install it using yum , see the following example

After this rsync was working properly.

Leave a Reply

Your email address will not be published. Required fields are marked *