"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
sftp: update docs on how to create known_hosts file
Nick Craig-Wood3529bdec9baa
diff --git a/docs/content/sftp.md b/docs/content/sftp.mdindex 8d33a213e..17a5ecb10 100644--- a/docs/content/sftp.md+++ b/docs/content/sftp.md@@ -187,7 +187,7 @@ Host key matching, using standard `known_hosts` files can be turned on byenabling the `known_hosts_file` option. This can point to the file maintainedby `OpenSSH` or can point to a unique file.-e.g.+e.g. using the OpenSSH `known_hosts` file:```[remote]@@ -198,15 +198,18 @@ pass =known_hosts_file = ~/.ssh/known_hosts````+Alternatively you can create your own known hosts file like this:++```+ssh-keyscan -t dsa,rsa,ecdsa,ed25519 example.com >> known_hosts+```+There are some limitations:* `rclone` will not _manage_ this file for you. If the key is missing orwrong then the connection will be refused.* If the server is set up for a certificate host key then the entry inthe `known_hosts` file _must_ be the `@cert-authority` entry for the CA-* Unlike `OpenSSH`, the libraries used by `rclone` do not permit (at time-of writing) multiple host keys to be listed for a server. Only the first-entry is used.If the host key provided by the server does not match the one in thefile (or is missing) then the connection will be aborted and an error