This project is read-only.

SshOperationTimeoutException and SshConnectionException continue to appear randomly.

Aug 24, 2016 at 3:56 PM
Hello, I am currently working on a project that must download, edit and then upload a file from an sftp server. To achieve this, I am using this library. As well as this, the file on the sftp is renamed before it is edited and uploaded, then renamed back to its original name once completed.

My issue is 50% of the time, an exception will appear. This exception can be either a SshOperationTimeoutException (timeout set to 10 seconds) or a SshConnectionException, but will always occur on the 'SftpClient.Connect()' function. The other 50% of the time, the program works as expected. What could be causing these issues and what can I do to minimize or solve them.