Skip to content

Unable to pass configuration to rclone via pipe / stdin #9012

Closed

Description

@jojje

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

  1. added a commit that references this issue on Dec 8, 2025
    233fef5
  2. added a commit that references this issue on Dec 10, 2025
    e6ce9d4
  3. added 2 commits that reference this issue on Jan 21, 2026
    8158e9a
    03e1dd3
  4. added a commit that references this issue on Feb 14, 2026
    d9de6c5
  5. added a commit that references this issue on Jul 20, 2026
    1583531
  6. added a commit that references this issue on Nov 21, 2026
    326ac6a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions