Rsync加密
我知道rsync可以在文件传输过程中启用/禁用ssh加密协议。那么,如果ssh加密协议被禁用,是否意味着rsync根本不做任何加密呢?
另外,我问上述问题的原因是我们使用 rsync 模块作为文件传输的一部分,并且该模块中没有任何内容指定将使用 ssh 加密。
如果 rsync 不使用任何加密,那么理论上我可以在源计算机和目标计算机上打开一个端口,并将文件从源推送到目标。
I know that rsync can enable / disable the ssh encryption protocol during the file transfer. So, if the ssh encryption protocol has been disabled, does it mean that rsync does not do any encryption at all?
Also, the reason why I asked the above question is we use the rsync module as part of our file transfer and there is nothing in the module that specifies that ssh encryption will be used.
If rsync does not use any encryption, then I can theoretically open a port on both source and destination machines and push the file from source to destination.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 rsync:// 协议方案(即当您连接到 rsyncd 守护进程时),则不会使用加密(尽管密码身份验证是使用 MD4- 完成的)基于挑战-响应系统,并且可能仍然相当安全)。
如果您使用
hostname:/some/path
方案,则 rsync 会透明地调用 SSH,它会加密所有内容,并使用 SSH 的本机身份验证机制。据我所知,某些 OpenSSH 版本支持配置文件中的选项Ciphers null
,但在后续版本中已删除该选项。一般来说,您不必担心加密开销,除非您在 1 Gbit 网络中工作或者您拥有旧计算机。
If you use the
rsync://
protocol scheme (i.e. when you connect to arsyncd
daemon) then no encryption will be used (although password authentication is done using a MD4-based challenge-response system and is probably still reasonably secure).If you use the
hostname:/some/path
scheme then rsync transparently calls SSH, which encrypts everything, and uses SSH's native authentication mechanisms. As far as I can tell, some OpenSSH versions supported an optionCiphers null
in the configuration file, but this has been removed in later versions.Generally you shouldn't worry about encryption overhead, unless you are working in a 1 Gbit network or you have old computers.
rsync 本身不执行加密。如果您不使用 ssh,也不通过 stunnel 或某种 VPN 传输 rsync 流量,则不会执行任何加密。是的,您可以通过这种方式节省一些 CPU 周期。
rsync performs no encryption on its own. If you don't use ssh, nor do you tunnel the rsync traffic through stunnel or some kind of VPN, then no encryption is performed. Yes, you can save some CPU cycles this way.