Otherwise the password may be given away even if the public host key has changed.
Tested "nothing breaks" on master
Needs backport to stable7
Needs backport to stable6 (and testing nothing breaks)
login() must be called after getServerPublicHostKey().
@karlitschek This needs to be into CE.
The inspection completed: No new issues
SFTP still works.
I ran the unit tests and there are no new failing test. 👍
🚀 Test Passed. 🚀
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/6311/
Code makes sense 👍
SFTP continues to work here as well. 👍
backport to stable7: 0b8de80
backport to stable6 (works for me): 3e2e766