SSH.NET
SSH.NET copied to clipboard
System.Net.Sockets.SocketException: 'An existing connection was forcibly closed by the remote host.'
I'm able to initially connect to the sftp server. However, after the initial file upload I try and reconnect to upload another file. This is when I get 'An existing connection was forcibly closed by the remote host.' The connection and upload process I'm using is very simple.

It seems like when I disconnect it's not fully disconnecting so when trying to reconnect it throws this exception.