Rclone check use sha1

What is the problem you are having with rclone?

rclone check defaults to md5 which is unreliable as two different files can produce the same hash. In my opinion this should be removed but I appreciate it's still used by some providers such as Google.

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

rclone v1.70.3
- os/version: debian 9.13 (64 bit)
- os/kernel: 4.9.0-19-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.4
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

SFTP

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

rclone check :sftp:"/path/to/folder" "/path/to/foilder" --sftp-host 'my.host.name' --sftp-user 'my.user.name' --sftp-pass "my.encrypted.pass" --sftp-shell-type "unix" --sftp-md5sum-command "sha1sum" --sftp-sha1sum-command "sha1sum" --sftp-concurrency 1 --buffer-size 500M --checkers 6 --checksum --fast-list --log-level INFO --low-level-retries 1 --match '/path/to/folder/matches.txt' --one-way --retries 1 --stats 0 --stats-file-name-length 75 --transfers 3 --use-mmap --user-agent "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36";

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

No config using on the fly remote.

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

2025/08/06 22:02:18 DEBUG : Creating backend with remote ":sftp:/path/to/folder"
2025/08/06 22:02:18 DEBUG : Using config file from "/home/***REDACTED***/.config/rclone/rclone.conf"
2025/08/06 22:02:18 DEBUG : :sftp: detected overridden config - adding "{m1hSI}" suffix to name
2025/08/06 22:02:18 DEBUG : sftp://my.user.name@my.host.name:22//path/to.folder: New connection ***REDACTED***:40038->***REDACTED***:22 to "SSH-2.0-OpenSSH_9.2p1 Debian-2"
2025/08/06 22:02:18 DEBUG : sftp://my.user.name@my.host.name:22//path.to.folder: Shell type "unix" from config
2025/08/06 22:02:18 DEBUG : sftp://my.user.name@my.host.name:22//path/to/folder: Using root directory "/path/to/folder"
2025/08/06 22:02:18 DEBUG : fs cache: renaming cache item ":sftp:/path/to/folder" to be canonical ":sftp{m1hSI}:/path/to/folder"
2025/08/06 22:02:18 DEBUG : Creating backend with remote "/path/to/folder"
2025/08/06 22:02:18 INFO  : Using md5 for hash comparisons

Setting this to none should disable this hash.

Oh so it does, thank you I couldn't see that mentioned in the docs.

It's not obvious but it's present in the docs (SFTP):

Value none will be set if none of the default commands could be used for a specific algorithm, and this algorithm will not be supported by the remote.

As always, PRs are welcome to help improve the documentation so it's more clear for others.

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