rclone/backend/sftp
nielash 982f76b4df
sftp: support dynamic --sftp-path-override
Before this change, rclone always expected --sftp-path-override to be
the absolute SSH path to remote:path/subpath which effectively made it
unusable for wrapped remotes (for example, when used with a crypt
remote, the user would need to provide the full decrypted path.)

After this change, the old behavior remains the default, but dynamic
paths are now also supported, if the user adds '@' as the first
character of --sftp-path-override. Rclone will ignore the '@' and
treat the rest of the string as the path to the SFTP remote's root.
Rclone will then add any relative subpaths automatically (including
unwrapping/decrypting remotes as necessary).

In other words, the path_override config parameter can now be used to
specify the difference between the SSH and SFTP paths. Once specified
in the config, it is no longer necessary to re-specify for each
command.

See: https://forum.rclone.org/t/sftp-path-override-breaks-on-wrapped-remotes/40025
2023-07-30 03:12:07 +01:00
..
sftp_internal_test.go sftp: add support for about and hashsum on windows server 2022-06-08 21:14:53 +02:00
sftp_test.go sftp: add --sftp-ssh to specify an external ssh binary to use 2023-07-28 10:29:02 +01:00
sftp_unsupported.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
sftp.go sftp: support dynamic --sftp-path-override 2023-07-30 03:12:07 +01:00
ssh_external.go sftp: add --sftp-ssh to specify an external ssh binary to use 2023-07-28 10:29:02 +01:00
ssh_internal.go ftp,sftp: add socks_proxy support for SOCKS5 proxies 2023-07-30 03:02:08 +01:00
ssh.go sftp: add --sftp-ssh to specify an external ssh binary to use 2023-07-28 10:29:02 +01:00
stringlock_test.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
stringlock.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00