Handle SSH_MSG_USERAUTH_BANNER prior establishing secure connection

This commit is contained in:
olegkap_cp
2011-05-05 15:08:35 +00:00
parent 3712b27080
commit 30624c5366
@@ -485,6 +485,8 @@ namespace Renci.SshClient
this.RegisterMessage("SSH_MSG_KEXINIT");
this.RegisterMessage("SSH_MSG_NEWKEYS");
// Some server implementations might sent this message first, prior establishing encryption algorithm
this.RegisterMessage("SSH_MSG_USERAUTH_BANNER");
// Start incoming request listener
this._messageListener = Task.Factory.StartNew(() => { this.MessageListener(); }, TaskCreationOptions.LongRunning);