Hello,
I got following error in the session connect.
"Message type 120 is not valid"
Renci.SshNet.dll!Renci.SshNet.Session.LoadMessage(byte[] data) Line 1539
Renci.SshNet.dll!Renci.SshNet.Session.ReceiveMessage() Line 884 + 0xb bytes
Renci.SshNet.dll!Renci.SshNet.Session.MessageListener() Line 1585 + 0x8 bytes
Renci.SshNet.dll!Renci.SshNet.Session.Connect.AnonymousMethod__4() Line 529 + 0x8 bytes
Renci.SshNet.dll!Renci.SshNet.Session.ExecuteThread.AnonymousMethod__3d(object o) Line 25 + 0xf bytes
Server is at sftp.wrightimg.com. Here is the server info obtained from WinSCP
Session protocol = SSH-2
SSH implementation = WeOnlyDo-wodFTPD 3.1.3.348
Encryption algorithm = aes
Compression = No
File transfer protocol = SFTP-4
I appreciate your help.
Thanks,
-Tony
Comments: ** Comment from web user: tonychan **
I got following error in the session connect.
"Message type 120 is not valid"
Renci.SshNet.dll!Renci.SshNet.Session.LoadMessage(byte[] data) Line 1539
Renci.SshNet.dll!Renci.SshNet.Session.ReceiveMessage() Line 884 + 0xb bytes
Renci.SshNet.dll!Renci.SshNet.Session.MessageListener() Line 1585 + 0x8 bytes
Renci.SshNet.dll!Renci.SshNet.Session.Connect.AnonymousMethod__4() Line 529 + 0x8 bytes
Renci.SshNet.dll!Renci.SshNet.Session.ExecuteThread.AnonymousMethod__3d(object o) Line 25 + 0xf bytes
Server is at sftp.wrightimg.com. Here is the server info obtained from WinSCP
Session protocol = SSH-2
SSH implementation = WeOnlyDo-wodFTPD 3.1.3.348
Encryption algorithm = aes
Compression = No
File transfer protocol = SFTP-4
I appreciate your help.
Thanks,
-Tony
Comments: ** Comment from web user: tonychan **
I followed the code for handling SSH_MSG_USERAUTH_BANNER and mimic one for message type 120. Then, I realize the length=this.ReadUInt32() in ReadString() is 2,623,693,920 which is very big. Since I am unfamiliar with SSH protocol, I am stuck.
Here is the order of messages received.
20 - SSH_MSG_KEXINIT
31 - SSH_MSG_KEXDH_REPLY
21 - SSH_MSG_NEWKEYS
120 - (Invalid Message Type)