"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: specify HostKeyCallback in ClientConfig
Igor Kharinbd2cdeeeab39
diff --git a/sftp/sftp.go b/sftp/sftp.goindex cefee2550..ed6734204 100644--- a/sftp/sftp.go+++ b/sftp/sftp.go@@ -90,9 +90,10 @@ func NewFs(name, root string) (fs.Fs, error) {port = "22"}config := &ssh.ClientConfig{- User: user,- Auth: []ssh.AuthMethod{},- Timeout: fs.Config.ConnectTimeout,+ User: user,+ Auth: []ssh.AuthMethod{},+ HostKeyCallback: ssh.InsecureIgnoreHostKey(),+ Timeout: fs.Config.ConnectTimeout,}if pass == "" {authSock := os.Getenv("SSH_AUTH_SOCK")