rclone/backend/sftp
Stephen Harris bbddadbd04 sftp: remember entered password in AskPass mode
As reported in

  https://github.com/rclone/rclone/issues/4660#issuecomment-705502792

After switching to a password callback function, if the ssh connection
aborts and needs to be reconnected then the user is-reprompted for their
password.  Instead we now remember the password they entered and just give
that back.  We do lose the ability for them to correct mistakes, but that's
the situation from before switching to callbacks.  We keep the benefits
of not asking for passwords until the SSH connection succeeds (right
known_hosts entry, for example).

This required a small refactor of how `f := &Fs{}` was built, so we can
store the saved password in the Fs object
2020-10-13 16:53:11 +01:00
..
sftp_internal_test.go sftp: add About support - fixes #3107 2019-04-25 10:51:15 +01:00
sftp_test.go build: implement a framework for starting test servers during tests 2020-01-18 16:47:37 +00:00
sftp_unsupported.go build: drop support for go1.8 2019-04-15 21:49:58 +01:00
sftp.go sftp: remember entered password in AskPass mode 2020-10-13 16:53:11 +01:00
stringlock_test.go build: drop support for go1.8 2019-04-15 21:49:58 +01:00
stringlock.go build: drop support for go1.8 2019-04-15 21:49:58 +01:00