rsync freebsd 客户端,rsync linux 服务器

rsync freebsd 客户端,rsync linux 服务器

花了很多时间检查这个脚本,但没有什么用...我有一个 linux rsync 服务器和我使用的 linux 客户端:

rsync --password-file=/usr/home/user/.rsync.pass --log-file=/var/log/docs.log --progress --stats -avr --delete [email protected]::docs /home/user/docs

一切正常,问题出在 FreeBSD rsync 客户端:

msg checking charset: ASCII
rsync: safe_read failed to read 1 bytes [Receiver]: Connection reset by peer (54)
[Receiver] _exit_cleanup(code=12, file=io.c, line=251): entered
rsync error: error in rsync protocol data stream (code 12) at io.c(251) [Receiver=3.1.0]
[Receiver] _exit_cleanup(code=12, file=io.c, line=251): about to call exit(12)

Linux 服务器上的 ssh 端口是 10321

还使用

--rsh='ssh -p10321' 

我也有同样的问题:-(

答案1

我在 FreeBSD 中使用以下命令通过 SSH 隧道获取数据:

rsync -auv -e 'ssh -i /home/id_rsa -p 12345' user@host:~/path/*.gz ../

相关内容