CentOS最小化安装后,直接在客户端主机172.16.100.15上安装rsync程序,而服务端172.16.100.16未安装任何东西
# rsync /tmp/test.txt 172.16.100.16:/tmp错误信息:rsync: Failed to exec ssh: No such file or directory (2)rsync error: error in 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 rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6] 原因: 客户端172.16.100.15未安装openssh-clients程序 # yum install openssh-clients -y # rsync /tmp/test.txt 172.16.100.16:/tmp 错误信息: bash: rsync: command not found rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
原因: 服务器端172.16.100.16未安装rsync程序 # yum install rsync -y