docs: sftp: add note regarding format of server_command
Elaborate exactly how server_command should be used in the configuration file
This commit is contained in:
parent
cffe85e6c5
commit
21008b4cd5
1 changed files with 10 additions and 1 deletions
|
@ -232,7 +232,16 @@ E.g. the second example above should be rewritten as:
|
||||||
Default: "",
|
Default: "",
|
||||||
Help: `Specifies the path or command to run a sftp server on the remote host.
|
Help: `Specifies the path or command to run a sftp server on the remote host.
|
||||||
|
|
||||||
The subsystem option is ignored when server_command is defined.`,
|
The subsystem option is ignored when server_command is defined.
|
||||||
|
|
||||||
|
If adding server_command to the configuration file please note that
|
||||||
|
it should not be enclosed in quotes, since that will make rclone fail.
|
||||||
|
|
||||||
|
A working example is:
|
||||||
|
|
||||||
|
[remote_name]
|
||||||
|
type = sftp
|
||||||
|
server_command = sudo /usr/libexec/openssh/sftp-server`,
|
||||||
Advanced: true,
|
Advanced: true,
|
||||||
}, {
|
}, {
|
||||||
Name: "use_fstat",
|
Name: "use_fstat",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue