mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
docs/ftp: improved default value description of port and username options
See #5551
This commit is contained in:
parent
3641727edb
commit
843b77aaaa
@ -52,11 +52,13 @@ func init() {
|
|||||||
Help: "FTP host to connect to.\n\nE.g. \"ftp.example.com\".",
|
Help: "FTP host to connect to.\n\nE.g. \"ftp.example.com\".",
|
||||||
Required: true,
|
Required: true,
|
||||||
}, {
|
}, {
|
||||||
Name: "user",
|
Name: "user",
|
||||||
Help: "FTP username, leave blank for current username, " + currentUser + ".",
|
Help: "FTP username.",
|
||||||
|
Default: currentUser,
|
||||||
}, {
|
}, {
|
||||||
Name: "port",
|
Name: "port",
|
||||||
Help: "FTP port, leave blank to use default (21).",
|
Help: "FTP port number.",
|
||||||
|
Default: 21,
|
||||||
}, {
|
}, {
|
||||||
Name: "pass",
|
Name: "pass",
|
||||||
Help: "FTP password.",
|
Help: "FTP password.",
|
||||||
|
@ -60,11 +60,13 @@ func init() {
|
|||||||
Help: "SSH host to connect to.\n\nE.g. \"example.com\".",
|
Help: "SSH host to connect to.\n\nE.g. \"example.com\".",
|
||||||
Required: true,
|
Required: true,
|
||||||
}, {
|
}, {
|
||||||
Name: "user",
|
Name: "user",
|
||||||
Help: "SSH username, leave blank for current username, " + currentUser + ".",
|
Help: "SSH username.",
|
||||||
|
Default: currentUser,
|
||||||
}, {
|
}, {
|
||||||
Name: "port",
|
Name: "port",
|
||||||
Help: "SSH port, leave blank to use default (22).",
|
Help: "SSH port number.",
|
||||||
|
Default: 22,
|
||||||
}, {
|
}, {
|
||||||
Name: "pass",
|
Name: "pass",
|
||||||
Help: "SSH password, leave blank to use ssh-agent.",
|
Help: "SSH password, leave blank to use ssh-agent.",
|
||||||
|
@ -339,7 +339,7 @@ and may be set in the config file.
|
|||||||
--ftp-idle-timeout Duration Max time before closing idle connections (default 1m0s)
|
--ftp-idle-timeout Duration Max time before closing idle connections (default 1m0s)
|
||||||
--ftp-no-check-certificate Do not verify the TLS certificate of the server
|
--ftp-no-check-certificate Do not verify the TLS certificate of the server
|
||||||
--ftp-pass string FTP password (obscured)
|
--ftp-pass string FTP password (obscured)
|
||||||
--ftp-port string FTP port, leave blank to use default (21)
|
--ftp-port string FTP port number (default 21)
|
||||||
--ftp-shut-timeout Duration Maximum time to wait for data connection closing status (default 1m0s)
|
--ftp-shut-timeout Duration Maximum time to wait for data connection closing status (default 1m0s)
|
||||||
--ftp-tls Use Implicit FTPS (FTP over TLS)
|
--ftp-tls Use Implicit FTPS (FTP over TLS)
|
||||||
--ftp-tls-cache-size int Size of TLS session cache for all control and data connections (default 32)
|
--ftp-tls-cache-size int Size of TLS session cache for all control and data connections (default 32)
|
||||||
@ -528,7 +528,7 @@ and may be set in the config file.
|
|||||||
--sftp-md5sum-command string The command used to read md5 hashes
|
--sftp-md5sum-command string The command used to read md5 hashes
|
||||||
--sftp-pass string SSH password, leave blank to use ssh-agent (obscured)
|
--sftp-pass string SSH password, leave blank to use ssh-agent (obscured)
|
||||||
--sftp-path-override string Override path used by SSH connection
|
--sftp-path-override string Override path used by SSH connection
|
||||||
--sftp-port string SSH port, leave blank to use default (22)
|
--sftp-port string SSH port number (default 22)
|
||||||
--sftp-pubkey-file string Optional path to public key file
|
--sftp-pubkey-file string Optional path to public key file
|
||||||
--sftp-server-command string Specifies the path or command to run a sftp server on the remote host
|
--sftp-server-command string Specifies the path or command to run a sftp server on the remote host
|
||||||
--sftp-set-modtime Set the modified time on the remote if set (default true)
|
--sftp-set-modtime Set the modified time on the remote if set (default true)
|
||||||
|
@ -51,11 +51,11 @@ Choose a number from below, or type in your own value
|
|||||||
1 / Connect to ftp.example.com
|
1 / Connect to ftp.example.com
|
||||||
\ "ftp.example.com"
|
\ "ftp.example.com"
|
||||||
host> ftp.example.com
|
host> ftp.example.com
|
||||||
FTP username, leave blank for current username, $USER
|
FTP username
|
||||||
Enter a string value. Press Enter for the default ("").
|
Enter a string value. Press Enter for the default ("$USER").
|
||||||
user>
|
user>
|
||||||
FTP port, leave blank to use default (21)
|
FTP port number
|
||||||
Enter a string value. Press Enter for the default ("").
|
Enter a signed integer. Press Enter for the default (21).
|
||||||
port>
|
port>
|
||||||
FTP password
|
FTP password
|
||||||
y) Yes type in my own password
|
y) Yes type in my own password
|
||||||
|
@ -56,9 +56,11 @@ Choose a number from below, or type in your own value
|
|||||||
1 / Connect to example.com
|
1 / Connect to example.com
|
||||||
\ "example.com"
|
\ "example.com"
|
||||||
host> example.com
|
host> example.com
|
||||||
SSH username, leave blank for current username, $USER
|
SSH username
|
||||||
|
Enter a string value. Press Enter for the default ("$USER").
|
||||||
user> sftpuser
|
user> sftpuser
|
||||||
SSH port, leave blank to use default (22)
|
SSH port number
|
||||||
|
Enter a signed integer. Press Enter for the default (22).
|
||||||
port>
|
port>
|
||||||
SSH password, leave blank to use ssh-agent.
|
SSH password, leave blank to use ssh-agent.
|
||||||
y) Yes type in my own password
|
y) Yes type in my own password
|
||||||
|
Loading…
Reference in New Issue
Block a user