mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 17:25:51 +00:00
Handle SSH_MSG_USERAUTH_BANNER prior establishing secure connection
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user