今天使用rsync工具實現遠程同步,報錯了,記得以前也出現過這樣的情況,居然忘記怎麼解決了,查了一下資料,在這裏做個記錄,以免下次又忘記還要到處找解決方法:
[root@xin-m src]# rsync -avzP [email protected]:/usr/local/src/ .
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 rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]
解決方法如下:
yum install openssh-clients