1
0
mirror of https://github.com/rclone/rclone.git synced 2025-02-04 05:08:23 +02:00
Sébastien Gross 395f259978
cmd: when running --password-command allow use of stdin
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>
2020-05-07 11:02:52 +01:00
..
2020-05-05 13:47:25 +00:00
2019-11-18 14:13:02 +00:00
2018-08-21 10:58:59 +01:00
2019-06-19 11:59:46 +01:00
2019-02-07 16:42:26 +00:00
2019-06-19 11:59:46 +01:00
2019-04-30 14:12:18 +02:00
2020-02-01 12:32:21 +00:00