ftp,sftp: fix docs for usernames

- factor env.CurrentUser out of backend/sftp
- Use env.CurrentUser in ftp and sftp
- fix docs to have correct username
This commit is contained in:
Nick Craig-Wood
2020-09-27 11:40:58 +01:00
parent 17acae2b00
commit 41ec712aa9
5 changed files with 34 additions and 23 deletions

View File

@@ -52,7 +52,7 @@ Choose a number from below, or type in your own value
1 / Connect to example.com
\ "example.com"
host> example.com
SSH username, leave blank for current username, ncw
SSH username, leave blank for current username, $USER
user> sftpuser
SSH port, leave blank to use default (22)
port>
@@ -192,7 +192,7 @@ SSH host to connect to
#### --sftp-user
SSH username, leave blank for current username, ncw
SSH username, leave blank for current username, $USER
- Config: user
- Env Var: RCLONE_SFTP_USER
@@ -256,7 +256,9 @@ in the new OpenSSH format can't be used.
#### --sftp-pubkey-file
Optional path to public key file; set this if you have a signed certificate you want to use for authentication.
Optional path to public key file.
Set this if you have a signed certificate you want to use for authentication.
Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.