今天使用rsync工具实现远程同步,报错了,记得以前也出现过这样的情况,居然忘记怎么解决了,查了一下资料,在这里做个记录,以免下次又忘记还要到处找解决方法:
[[email protected] 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
时间: 2024-07-30 04:24:43