Rclone mount sftp without config file

What is the problem you are having with rclone?

I'm trying to understand how to run a single rclone command without any use of a config file. Specifially I want to establish sftp mounts on-the-fly.

I'm not sure how to structure this command. Any basic full examples would be appreciated.

Run the command 'rclone version' and share the full output of the command.

rclone v1.64.0
- os/version: darwin 13.6 (64 bit)
- os/kernel: 22.6.0 (x86_64)
- os/type: darwin
- os/arch: amd64
- go/version: go1.21.1
- go/linking: dynamic
- go/tags: cmount

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount \
	1.2.3.4 \
	/path/to/mount \
	--volname "MyVol" \
	--allow-other \
	--allow-non-empty \
	--sftp-key-file /path/to/id_rsa \
	--sftp-user user \
	--sftp-shell-type unix \
	--sftp-md5sum-command md5sum \
	--sftp-sha1sum-command sha1sum

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

; empty config
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

Too much personal info to bother redacting. It just regurgitates my original command followed by the mount help screen. Nothing else.

welcome to the forum,

can use connection string, enviroment variables, or flags.

the rclone docs, for connections strings, has an example.
the forum is full of examples.

best to test using rclone ls, not rclone mount

Thanks @asdffdsa.

For others, this was my solution to establish an sftp mount via command line only, without the use of a config file:

rclone mount \
	--sftp-host 1.2.3.4 \
	:sftp:/remote/path \
	/path/to/mount \
	--volname "MyVol" \
	--allow-other \
	--allow-non-empty \
	--sftp-key-file /path/to/id_rsa \
	--sftp-user user \
	--sftp-shell-type unix \
	--sftp-md5sum-command md5sum \
	--sftp-sha1sum-command sha1sum

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.