无法使用Tamir.SharpSSH dll连接SFTP [英] unable to connect SFTP using Tamir.SharpSSH dll

查看:229
本文介绍了无法使用Tamir.SharpSSH dll连接SFTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法使用Tamir.SharpSSH dll连接到SFTP,但我可以手动使用FileZilla Client连接它。



Session.connect:System.IO.IOException:Unable从传输连接读取数据:远程主机强制关闭现有连接。 ---> System.Net.Sockets.SocketException:远程主机强制关闭现有连接

在System.Net.Sockets.Socket.Receive(Byte []缓冲区,Int32偏移量,Int32大小,SocketFlags socketFlags )

在System.Net.Sockets.NetworkStream.Read(Byte []缓冲区,Int32偏移量,Int32大小)

---内部异常堆栈跟踪结束 - -

在System.Net.Sockets.NetworkStream.Read(Byte []缓冲区,Int32偏移量,Int32大小)

在System.IO.Stream.ReadByte()

at Tamir.SharpSsh.java.io.JStream.ReadByte()

at Tamir.SharpSsh.jsch.IO.getByte()

at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)

Unable to connect to SFTP using Tamir.SharpSSH dll but manually i can connect it using FileZilla Client.

Session.connect: System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.Stream.ReadByte()
at Tamir.SharpSsh.java.io.JStream.ReadByte()
at Tamir.SharpSsh.jsch.IO.getByte()
at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)

推荐答案

参见 http://www.tamirgal.com/blog/page/SharpSSH.aspx [ ^ ]。


这篇关于无法使用Tamir.SharpSSH dll连接SFTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆