stefanbirkner / fake-sftp-server-rule

A JUnit rule that runs an in-memory SFTP server.
MIT License
40 stars 26 forks source link

Getting Software caused connection abort: socket write error #20

Open dinnupega opened 4 years ago

dinnupega commented 4 years ago

Hi I am trying to integrate this fake-sftp-server-rule with my JUnits.

I started fake-sftp-server-rule and trying to make a connection with my client but I am facing below error.

com.jcraft.jsch.JSchException: java.net.SocketException: Software caused connection abort: socket write error

at com.jcraft.jsch.ChannelSftp.start(ChannelSftp.java:315)
at com.jcraft.jsch.Channel.connect(Channel.java:152)
at com.jcraft.jsch.Channel.connect(Channel.java:145)

fakesftpserver.txt

Attached the sample code snippet, Can you please help me connecting to sftp server and make uploads and download.

Thanks in advance, Dinesh

stefanbirkner commented 3 years ago

The test that you provided runs successfully on my machine. Can you show me the full stack trace of your error.