What is the problem you are having with rclone?
when I try to copy files with an SSH tunnel.
But the command doesn't work.
Is it possible that --sftp-ssh and --sftp-path-override can't work together?
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.2
- os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
- os/kernel: 10.0.22631.3155 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
I'm trying to copy data to a Synology NAS
The command you were trying to run
./rclone.exe copy D:\TEST Crono:Crono/RAW --sftp-ssh "ssh user@server" --sftp-path-override /volume2/Crono/RAW
Please run 'rclone config redacted' and share the full output.
[Crono]
type = sftp
host = XXX
user = XXX
pass = XXX
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum
A log from the command that you were trying to run with the -vv
flag
2024/03/01 13:40:05 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\\Users\\mescs\\Rclone\\rclone.exe" "-vv" "copy" "D:\\TEST" "Crono:Crono/RAW" "--sftp-ssh" "ssh parisile@login.roma1.infn.it" "--sftp-path-override" "/volume2/Crono/RAW"]
2024/03/01 13:40:05 DEBUG : Creating backend with remote "D:\\TEST"
2024/03/01 13:40:05 DEBUG : Using config file from "C:\\Users\\mescs\\AppData\\Roaming\\rclone\\rclone.conf"
2024/03/01 13:40:05 DEBUG : fs cache: renaming cache item "D:\\TEST" to be canonical "//?/D:/TEST"
2024/03/01 13:40:05 DEBUG : Creating backend with remote "Crono:Crono/RAW"
2024/03/01 13:40:05 DEBUG : Crono: detected overridden config - adding "{7uZFm}" suffix to name
2024/03/01 13:40:05 NOTICE: Crono{7uZFm}: --sftp-ssh is in use - ignoring user/host/port from config - set in the parameters to --sftp-ssh (remove them from the config to silence this warning)
2024/03/01 13:40:05 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: creating additional session
2024/03/01 13:40:05 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: running: ssh parisile@login.roma1.infn.it -s sftp
parisile@login.roma1.infn.it's password:
2024/03/01 13:40:14 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Shell type "unix" from config
2024/03/01 13:40:14 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Relative path resolved to "/afs/infn.it/roma1/user/parisile/Crono/RAW"
2024/03/01 13:40:14 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Using root directory "/afs/infn.it/roma1/user/parisile/Crono/RAW"
2024/03/01 13:40:14 DEBUG : fs cache: renaming cache item "Crono:Crono/RAW" to be canonical "Crono{7uZFm}:Crono/RAW"
2024/03/01 13:40:14 DEBUG : test.rtf: Need to transfer - File not found at Destination
2024/03/01 13:40:14 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Waiting for checks to finish
2024/03/01 13:40:14 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Waiting for transfers to finish
2024/03/01 13:40:14 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Shell path redirected to "/volume2/Crono/RAW/test.rtf.xariyet4.partial" with option path_override
2024/03/01 13:40:14 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: creating additional session
2024/03/01 13:40:14 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Running remote command: md5sum /volume2/Crono/RAW/test.rtf.xariyet4.partial
2024/03/01 13:40:14 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: running: ssh parisile@login.roma1.infn.it "md5sum /volume2/Crono/RAW/test.rtf.xariyet4.partial"
parisile@login.roma1.infn.it's password:
2024/03/01 13:40:18 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: command exited with error: exit status 1
2024/03/01 13:40:18 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: close
2024/03/01 13:40:18 ERROR : test.rtf.xariyet4.partial: Failed to calculate dst hash: failed to calculate md5 hash: failed to run "md5sum /volume2/Crono/RAW/test.rtf.xariyet4.partial": md5sum: /volume2/Crono/RAW/test.rtf.xariyet4.partial: No such file or directory: exit status 1
2024/03/01 13:40:18 ERROR : test.rtf.xariyet4.partial: corrupted on transfer: md5 hash differ "661b9fff0fc0ec8d6d1374e66ac4754e" vs ""
2024/03/01 13:40:18 INFO : test.rtf.xariyet4.partial: Removing failed copy
2024/03/01 13:40:18 ERROR : Attempt 1/3 failed with 2 errors and: corrupted on transfer: md5 hash differ "661b9fff0fc0ec8d6d1374e66ac4754e" vs ""
2024/03/01 13:40:18 DEBUG : test.rtf: Need to transfer - File not found at Destination
2024/03/01 13:40:18 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Waiting for checks to finish
2024/03/01 13:40:18 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Waiting for transfers to finish
2024/03/01 13:40:18 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Shell path redirected to "/volume2/Crono/RAW/test.rtf.kigebim7.partial" with option path_override
2024/03/01 13:40:18 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: creating additional session
2024/03/01 13:40:18 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Running remote command: md5sum /volume2/Crono/RAW/test.rtf.kigebim7.partial
2024/03/01 13:40:18 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: running: ssh parisile@login.roma1.infn.it "md5sum /volume2/Crono/RAW/test.rtf.kigebim7.partial"
parisile@login.roma1.infn.it's password:
2024/03/01 13:40:23 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: command exited with error: exit status 1
2024/03/01 13:40:23 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: close
2024/03/01 13:40:23 ERROR : test.rtf.kigebim7.partial: Failed to calculate dst hash: failed to calculate md5 hash: failed to run "md5sum /volume2/Crono/RAW/test.rtf.kigebim7.partial": md5sum: /volume2/Crono/RAW/test.rtf.kigebim7.partial: No such file or directory: exit status 1
2024/03/01 13:40:23 ERROR : test.rtf.kigebim7.partial: corrupted on transfer: md5 hash differ "661b9fff0fc0ec8d6d1374e66ac4754e" vs ""
2024/03/01 13:40:23 INFO : test.rtf.kigebim7.partial: Removing failed copy
2024/03/01 13:40:23 ERROR : Attempt 2/3 failed with 2 errors and: corrupted on transfer: md5 hash differ "661b9fff0fc0ec8d6d1374e66ac4754e" vs ""
2024/03/01 13:40:23 DEBUG : test.rtf: Need to transfer - File not found at Destination
2024/03/01 13:40:23 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Waiting for checks to finish
2024/03/01 13:40:23 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Waiting for transfers to finish
2024/03/01 13:40:23 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Shell path redirected to "/volume2/Crono/RAW/test.rtf.hukapum6.partial" with option path_override
2024/03/01 13:40:23 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: creating additional session
2024/03/01 13:40:23 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Running remote command: md5sum /volume2/Crono/RAW/test.rtf.hukapum6.partial
2024/03/01 13:40:23 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: running: ssh parisile@login.roma1.infn.it "md5sum /volume2/Crono/RAW/test.rtf.hukapum6.partial"
parisile@login.roma1.infn.it's password:
2024/03/01 13:40:33 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: command exited with error: exit status 1
2024/03/01 13:40:33 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: ssh external: close
2024/03/01 13:40:33 ERROR : test.rtf.hukapum6.partial: Failed to calculate dst hash: failed to calculate md5 hash: failed to run "md5sum /volume2/Crono/RAW/test.rtf.hukapum6.partial": md5sum: /volume2/Crono/RAW/test.rtf.hukapum6.partial: No such file or directory: exit status 1
2024/03/01 13:40:33 ERROR : test.rtf.hukapum6.partial: corrupted on transfer: md5 hash differ "661b9fff0fc0ec8d6d1374e66ac4754e" vs ""
2024/03/01 13:40:33 INFO : test.rtf.hukapum6.partial: Removing failed copy
2024/03/01 13:40:33 ERROR : Attempt 3/3 failed with 2 errors and: corrupted on transfer: md5 hash differ "661b9fff0fc0ec8d6d1374e66ac4754e" vs ""
2024/03/01 13:40:33 INFO :
Transferred: 114.636 KiB / 114.636 KiB, 100%, 5.896 KiB/s, ETA 0s
Errors: 2 (retrying may help)
Elapsed time: 28.1s
2024/03/01 13:40:33 DEBUG : 7 go routines active
2024/03/01 13:40:33 DEBUG : sftp://cobbs@141.108.4.25:22/Crono/RAW: Closing 1 unused connections
2024/03/01 13:40:33 Failed to copy with 2 errors: last error was: corrupted on transfer: md5 hash differ "661b9fff0fc0ec8d6d1374e66ac4754e" vs ""