Repository navigation
Description
What is the problem you are having with rclone?
Unable to pass configuration to rclone via pipe / stdin.
Without a way to pipe the configuration and / or secrets, there is no way to use rclone on remote machines unless one also uploads secrets that can be easily stolen by anyone with procfs access (environment variables or command line arguments), or directly from the remote machine's filesystem.
Example of actual use case:
ssh machine "rclone --config /dev/stdin sha1sum --download remote:" < rclone.conf > cryptfs-hashes.log
Typical use would be to launch a VM close to where the storage is, such as on AWS for S3 backed storage, or Hetzner VM for data on a storage box, so that the 10GbE network links between storage and rclone can be used, rather than a ~100mbit connection to a far away laptop from which the storage related commands for rclone are being issued. I.e. low latency and high throughput advantage, especially important for hashing remote files since rclone's crypt backend doesn't support storing nor retrieving hash metadata for files.
What is your rclone version (output from rclone version)
rclone v1.72.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.8.0-87-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.25.4
- go/linking: static
- go/tags: none
Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
- Ubuntu 22.04.5 LTS, 64bit
- Alpine Linux v3.22, 64bit
- Windows 10, 64bit
Which cloud storage system are you using? (e.g. Google Drive)
N/A
The command you were trying to run (e.g. rclone copy /tmp remote:tmp)
echo -e "[remote]\ntype = test" | rclone --config /dev/stdin listremotes
A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)
2025/12/06 07:20:34 DEBUG : rclone: Version "v1.72.0" starting with parameters ["./rclone" "-vv" "--config" "/dev/stdin" "listremotes"]
2025/12/06 07:20:34 CRITICAL: Failed to load config file "/dev/stdin": seek /dev/stdin: illegal seek
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Activity
configfile: add piped config support - fixes #9012
configfile: add piped config support - fixes #9012
configfile: add piped config support - fixes rclone#9012
configfile: add piped config support - fixes rclone#9012
Sync from rclone/rclone (#1)
configfile: add piped config support - fixes rclone#9012
configfile: add piped config support - fixes rclone#9012