我正在尝试使用 rsync 下载文件,其中 rsync 通过服务器上的 SSH 以守护进程模式运行,并在客户端上收到以下错误:
rsync -a myserver:/remote/path/ localdestdir/
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(176) [Receiver=3.1.1]
Run Code Online (Sandbox Code Playgroud)
服务器在用户的 .ssh/authorized_keys 中有这个:
command="rsync --config=/path/to/engine-rsyncd.conf --server --daemon ." ssh-rsa ...
Run Code Online (Sandbox Code Playgroud)
我读过所有我能找到关于这个问题,正如大家所暗示的,经检查发现外壳是干净的,它是干净的:
ssh myserver false >out.tmp
Run Code Online (Sandbox Code Playgroud)
创建一个零长度文件 out.tmp (如果我从服务器上的 authorized_keys 中删除“command=...”)。
我还尝试在服务器上将用户的 shell 设置为 rssh 而不是 bash - 同样的事情。
客户端和服务器都运行 Ubuntu 16.04,因此它们具有相同版本的 rsync(3.3.1,协议 31)。
还能是什么?我尝试在 rsync 和 SSH 中启用详细日志记录,但日志没有给我任何线索。rsync 守护进程不会记录任何超过
2018/02/12 15:14:24 [6215] …Run Code Online (Sandbox Code Playgroud) 我的 Postfix 邮件服务器设置了机会性 TLS。有没有办法获得有关实际使用 TLS 的传入和传出电子邮件的统计数据?很高兴知道我的邮件服务器支持和不支持 TLS 的哪些域。