Quantcast
Channel: SSH.NET Library
Viewing all articles
Browse latest Browse all 2955

Commented Unassigned: An established connection was aborted by the server [2398]

$
0
0
When trying to download files from sftp, I am getting error:"__An established connection was aborted by the server__"
Comments: ** Comment from web user: scottowa **

Hello Gert,

Sorry about the delay in responding - the serverVersion is "SSH-2.0-Maverick_SSHD".

The client Version is "SSH-2.0-Renci.SshNet.SshClient.0.0.1".

I adding the logging code with the 2014.4.6.0 beta 1 got:

System.Net Error: 0 : [12448] Exception in AppDomain#35320229::UnhandledExceptionHandler - An established connection was aborted by the server..
at Renci.SshNet.Sftp.SubsystemSession.WaitOnHandle(WaitHandle waitHandle, TimeSpan operationTimeout) in t:\Third Party\Renci.SshNet\Renci.SshNet\SubsystemSession.cs:line 163
at Renci.SshNet.Sftp.SftpSession.RequestRead(Byte[] handle, UInt64 offset, UInt32 length) in t:\Third Party\Renci.SshNet\Renci.SshNet\Sftp\SftpSession.cs:line 351
at Renci.SshNet.SftpClient.InternalDownloadFile(String path, Stream output, SftpDownloadAsyncResult asyncResult, Action`1 downloadCallback) in t:\Third Party\Renci.SshNet\Renci.SshNet\SftpClient.cs:line 1606
at Renci.SshNet.SftpClient.DownloadFile(String path, Stream output, Action`1 downloadCallback) in t:\Third Party\Renci.SshNet\Renci.SshNet\SftpClient.cs:line 569

I have tried stepping through the debugger - the error occurs at the first RequestRead

var data = this._sftpSession.RequestRead(handle, offset, optimalReadLength);

offset=0,optimalReadLength=65523

Mnay Thanks,

Adrian


Viewing all articles
Browse latest Browse all 2955

Trending Articles