4
我從Windows Server 2008 R2連接到運行vsFTPd 2.0.7的Linux FTP服務器。我通過SSL連接。我該如何解決:由於意外的數據包格式,握手失敗?
這裏是代碼行是失敗的:
sslStream = new SslStream(stream, false, CertificateValidation);
這裏是日誌:
220 (vsFTPd 2.0.7)
AUTH SSL
234 Proceed with negotiation.
我收到以下錯誤:
System.IO.IOException: The handshake failed due to an unexpected packet format.
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at KellermanSoftware.NetFtpLibrary.ProxySocket.InitSsl()
at KellermanSoftware.NetFtpLibrary.FTP.Connect(Boolean implicitConnection)