rsync -e 选项用于指定传输时使用的远程 Shell 程序。该选项允许用户在传输文件时使用不同的远程 Shell 程序,例如 'ssh'、'rsh' 等。

例如,使用 'ssh' 传输文件时,可以使用以下命令:

rsync -e ssh source_file user@remote_host:/destination_folder

使用 'rsh' 传输文件时,可以使用以下命令:

rsync -e rsh source_file user@remote_host:/destination_folder

默认情况下,rsync 使用 'ssh' 作为远程 Shell 程序。但是,如果需要使用其他远程 Shell 程序,则可以使用 -e 选项来指定。

Rsync -e 选项:如何使用不同的远程 Shell 程序传输文件

原文地址: https://www.cveoy.top/t/topic/kC26 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录