rclone/backend
Arnav Singh 9f8357ada7
sftp: fix using key_use_agent and key_file together needing private key file
When using ssh-agent to hold multiple keys, it is common practice to configure
openssh to use a specific key by setting the corresponding public key as
the `IdentityFile`. This change makes a similar behavior possible in rclone
by having it parse the `key_file` config as the public key when
`key_use_agent` is `true`.

rclone already attempted this behavior before this change, but it assumed that
`key_file` is the private key and that the public key is specified in
`${key_file}.pub`. So for parity with the openssh behavior, this change makes
rclone first attempt to read the public key from `${key_file}.pub` as before
(for the sake of backward compatibility), then fall back to reading it from
`key_file`.

Fixes #6791
2023-03-17 11:44:19 +00:00
..
alias build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
all Add a native backend for oracle object storage - fixes #6299 2022-10-13 13:04:56 +01:00
amazonclouddrive build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
azureblob build: update dependencies 2023-03-10 11:15:07 +00:00
b2 accounting: Make checkers show what they are doing 2023-03-01 11:10:38 +00:00
box Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
cache cache: fix lint error in latest golangci-lint 2023-02-06 10:44:40 +00:00
chunker rcat: preserve metadata when Copy falls back to Rcat 2022-11-10 12:04:35 +00:00
combine fs: move operations.NewOverrideRemote to fs.NewOverrideRemote 2022-11-21 08:02:09 +00:00
compress Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
crypt crypt: fix for unencrypted directory names on case insensitive remotes 2023-01-11 16:32:40 +00:00
drive drive: Make --drive-stop-on-upload-limit to respond to storageQuotaExceeded 2023-03-07 11:00:08 +00:00
dropbox all: fix spelling across the project 2022-08-30 11:16:26 +02:00
fichier all: fix spelling across the project 2022-08-30 11:16:26 +02:00
filefabric Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
ftp ftp: fix 426 errors on downloads with vsftpd 2023-03-15 18:09:29 +00:00
googlecloudstorage googlecloudstorage: added gcs requester pays 2023-03-16 17:13:37 +00:00
googlephotos fs: move operations.NewOverrideRemote to fs.NewOverrideRemote 2022-11-21 08:02:09 +00:00
hasher accounting: Make checkers show what they are doing 2023-03-01 11:10:38 +00:00
hdfs build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
hidrive all: fix spelling across the project 2022-08-30 11:16:26 +02:00
http test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
internetarchive all: fix spelling across the project 2022-08-30 11:16:26 +02:00
jottacloud Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
koofr all: fix spelling across the project 2022-08-30 11:16:26 +02:00
local local: fix exclusion of dangling symlinks with -L/--copy-links 2023-03-07 12:15:10 +00:00
mailru mailru: allow timestamps to be before the epoch 1970-01-01 2022-11-10 11:27:01 +00:00
mega mega: add --mega-use-https flag 2023-03-02 20:28:10 +00:00
memory Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
netstorage Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
onedrive onedrive: default onedrive personal to QuickXorHash 2023-03-02 19:32:35 +00:00
opendrive build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
oracleobjectstorage oracle-object-storage: bring your own encryption keys 2023-02-21 14:45:02 +00:00
pcloud all: fix spelling across the project 2022-08-30 11:16:26 +02:00
premiumizeme build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
putio build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
qingstor build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
s3 s3: fix InvalidRequest copying to a locked bucket from a source with no MD5SUM 2023-03-17 11:34:20 +00:00
seafile seafile: fix for flaky tests #6799 2023-03-02 20:03:25 +00:00
sftp sftp: fix using key_use_agent and key_file together needing private key file 2023-03-17 11:44:19 +00:00
sharefile Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
sia build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
smb smb: allow SPN (service principal name) to be configured 2023-03-07 12:18:32 +00:00
storj storj: update satellite urls and labels 2023-02-06 13:18:15 +00:00
sugarsync Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
swift Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
union Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
uptobox uptobox: fix improper regex 2023-03-16 17:12:27 +00:00
webdav webdav: add support for chunked uploads — fix #3666 2023-03-17 11:09:08 +00:00
yandex build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
zoho Replace deprecated ioutil 2022-11-07 11:41:47 +00:00