"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
serve sftp: fix detection of whether server is authorized
Nick Craig-Wood84b5da089ee8
diff --git a/cmd/serve/sftp/server.go b/cmd/serve/sftp/server.goindex 6bf48d42b..ca507882e 100644--- a/cmd/serve/sftp/server.go+++ b/cmd/serve/sftp/server.go@@ -130,8 +130,8 @@ func (s *server) serve() (err error) {fs.Logf(nil, "Loaded %d authorized keys from %q", len(authorizedKeysMap), authKeysFile)}- if !s.opt.NoAuth && len(authorizedKeysMap) == 0 && s.opt.User == "" && s.opt.Pass == "" {- return errors.New("no authorization found, use --user/--pass or --authorized-keys or --no-auth")+ if !s.opt.NoAuth && len(authorizedKeysMap) == 0 && s.opt.User == "" && s.opt.Pass == "" && s.proxy == nil {+ return errors.New("no authorization found, use --user/--pass or --authorized-keys or --no-auth or --auth-proxy")}// An SSH server is represented by a ServerConfig, which holds