rclone/cmd/serve/sftp
Nick Craig-Wood c553ad5158 serve sftp: fix authentication on one connection blocking others - fixes #4882
Before this change, if one connection was authenticating this would
block any others from authenticating.

This was due to ssh.NewServerConn not being called in a go routine
after the Accept call.

This is fixed by running the ssh authentication in a go routine.

Thanks to @FiloSottile for advice on how to fix this.

See: https://github.com/golang/go/issues/43521
2021-01-06 15:34:07 +00:00
..
connection.go doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00
connection_test.go serve sftp: serve an rclone remote over SFTP 2019-05-11 23:39:04 +01:00
handler.go serve sftp: use VFS utility functions instead of own copy 2020-04-19 15:40:55 +01:00
server.go serve sftp: fix authentication on one connection blocking others - fixes #4882 2021-01-06 15:34:07 +00:00
sftp.go fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
sftp_test.go fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
sftp_unsupported.go serve sftp: serve an rclone remote over SFTP 2019-05-11 23:39:04 +01:00