mirror of
https://github.com/rclone/rclone.git
synced 2025-02-04 05:08:23 +02:00
395f259978
Bind rclone standard input to password command's standard input. This allows to provide password from a pipe and collect it using cat. The typical use case is when rclone is on a remote server with an encrypted configuration. This solved the environment variable issue (#3368) and the password storage on remote host. Now the following chain is allowed: echo 'secret' | ssh host.example.com \ sudo -u rclone \ rclone --config /path/to/rclone.conf \ --password-command 'cat' ls remote: Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org> Co-authored-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>