Password:
exec request failed on channel 0
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]
1) /usr/bin/sshpass: No such file or directory
2) I need to copy on one zip file like in this case /data/directory_to_sync/patch/file1.zip , I donot want to sync the complete directory .
Yes, that is because you must set up all the right parameters.
You cannot just cut-and-paste my comment / example to you and expect it to work on your server with your userids, passwords, commands and paths.
You must install sshpass, set up your password, paths, etc. Do you not know that? You must read the messages (error messages) and configure your server youself.
I am surprised that you would not know this basic thing about working on a server.
You don't need to do the exact same command as me. I gave you only an example.
You need to learn what you are doing if you are going to be working on a server.
There you go ... proving all things are possible if you apply your mind to the situation at hand.
In a parallel world there is a user on unix.com "Asad from India" who is using rsync .... and in another parallel universe the same user got angry and never logged in again.