1
我在与Renci SSH.Net一个奇怪的问题连接异常“客户端未连接”,即使上在产量为true
之前检查sftp.IsConnected
。客户端不能与SSH.Net
文件按预期下载。
堆栈跟踪如下:
at Renci.SshNet.Session.SendMessage(Message message)
at Renci.SshNet.Session.SendDisconnect(DisconnectReason reasonCode, String message)
at Renci.SshNet.Session.Disconnect()
at Renci.SshNet.BaseClient.Disconnect()
at My.Program.MyMethod() in c:\path\to\my\program.cs:line 42
我目前的工作是'catch(SshConnectionException ex){}' - 这不是理想的 – 2014-08-27 12:37:28