Rsync: failed to exec SSH: no such error in remote Rsync

1. Transfer the file /etc/hosts to 10.41.1.77/MNT /
[root@backup ~]# rsync-avz /etc/hostess-p 22′ [email protected]:/ MNT /
rsync: Failed to exec SSH No to the file or directory (2)
rsync error: error in the IPC code (code 14) at pipe. C (84) [sender = 3.0.6]
rsync: connection unexpectedly closed (0 bytes received so far) (sender)
rsync error: Error in IPC code (code 14) at io.c(600) [sender=3.0.6]
### # check the reason is that SSH client has not been installed ### # br>[root-backup MNT]# yum install openssh-counts-y
[root-@backup MNT]# rsync avz /etc/hosts-p 22′ [email protected]:/MNT/
The authenticity of host ‘10.41.1.77 (10.41.1.77)’ can ‘t be established.
RSA key fingerprint is: 85 4 f: when d: 41: e2: fb: eb: 88: e2: ba: ce: 4 e: 5 a: 49: c4.
Are you sure you want to continue connecting (yes/no)?Yes
Warning: Permanently added ‘10.41.1.77’ (RSA) to the list of known hosts.
[email protected]’s password:
bash: rsync: command not found: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: Remote command not found (code 127) at IO. C (600) [sender=3.0.6]
[root-@backup MNT]# rrm-qa rsync
rsync 3.0.6-12. El6.x86_64
prompt bash: rsync: Rsync program
client installer
[root-@nfs01 MNT]# yum install rsync-y
retransmit
[root-@backup MNT]# rsync-avz /etc/hosts-ssh-p 22′ [email protected]:/ MNT /
[email protected]’s password:
sending incremental file list
hosts

sent 196 bytes received 31 bytes 41.27 bytes/ SEC
total size is 309 speedup is 1.36
target computer check to see if the transmission was successful
[root@nfs01 MNT]# ls
hosts
chuan successfully

reproduced in: https://blog.51cto.com/11956937/2067602

Read More: