We are getting intermittent connection problem using Rebex SFTP
below are the exception that we capture on our log
{
  "Depth": 0,
  "ClassName": "Rebex.Net.SftpException",
  "Message": "No connection could be made because the target machine actively refused it.",
  "Source": "Rebex.Sftp",
  "StackTraceString": "   at Rebex.Net.Sftp.XM(String A, Int32 B, SshParameters C, BNB D)\r\n   at Rebex.Net.Sftp.WM(String A, Int32 B, SshParameters C)\r\n   at Stream.Business.Managers.SftpFileDownloaderManager.CopyOrMoveFile(SftpFileToDownload sftpFileToDownload, DownloadFileFolder downloadFileFolder, FileOperationDelegate fileOperation, String& destinationFileName)\r\n   at Stream.Business.Managers.SftpFileDownloaderManager.CopyFile(SftpFileToDownload sftpFileToDownload, DownloadFileFolder downloadFileFolder, String& destinationFileName)\r\n   at Stream.AmosImport.Bus.Consumers.DocumentNotificationProcessor.<>cDisplayClass13_0.b0()\r\n   at Stream.AmosImport.Bus.Consumers.DocumentNotificationProcessor.d__17.MoveNext()",
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": {
    "Name": "XM",
    "AssemblyName": "Rebex.Sftp",
    "AssemblyVersion": "3.0.5715.0",
    "AssemblyCulture": "",
    "ClassName": "Rebex.Net.Sftp",
    "Signature": "Void XM(System.String, Int32, Rebex.Net.SshParameters, Rebex.Net.BNB)",
    "MemberType": 8
  },
  "HResult": -2146233088,
  "HelpURL": null
},
{
  "Depth": 1,
  "ClassName": "Rebex.Net.ProxySocketException",
  "Message": "No connection could be made because the target machine actively refused it.",
  "Source": "Rebex.Networking",
  "StackTraceString": "   at Rebex.Net.OEB.XC(IAsyncResult A, String B)\r\n   at Rebex.Net.OEB.SB(IAsyncResult A)\r\n   at Rebex.Net.ProxySocket.Connect(String serverName, Int32 serverPort)\r\n   at Rebex.Net.Sftp.XM(String A, Int32 B, SshParameters C, BNB D)",
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": {
    "Name": "XC",
    "AssemblyName": "Rebex.Networking",
    "AssemblyVersion": "3.0.5715.0",
    "AssemblyCulture": "",
    "ClassName": "Rebex.Net.OEB",
    "Signature": "System.Object XC(System.IAsyncResult, System.String)",
    "MemberType": 8
  },
  "HResult": -2146233088,
  "HelpURL": null
},
{
  "Depth": 2,
  "ClassName": "Rebex.Net.ProxySocketException",
  "Message": "No connection could be made because the target machine actively refused it.",
  "Source": "Rebex.Networking",
  "StackTraceString": "   at Rebex.Net.OEB.YC(String A, IPAddress B, Int32 C)",
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": {
    "Name": "YC",
    "AssemblyName": "Rebex.Networking",
    "AssemblyVersion": "3.0.5715.0",
    "AssemblyCulture": "",
    "ClassName": "Rebex.Net.OEB",
    "Signature": "Void YC(System.String, System.Net.IPAddress, Int32)",
    "MemberType": 8
  },
  "HResult": -2146233088,
  "HelpURL": null
},
{
  "Depth": 3,
  "ClassName": "System.Net.Sockets.SocketException",
  "Message": "No connection could be made because the target machine actively refused it 172.26.0.64:22",
  "Source": "System",
  "StackTraceString": "   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)\r\n   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)\r\n   at Rebex.Net.OEB.YC(String A, IPAddress B, Int32 C)",
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": {
    "Name": "DoConnect",
    "AssemblyName": "System",
    "AssemblyVersion": "4.0.0.0",
    "AssemblyCulture": "",
    "ClassName": "System.Net.Sockets.Socket",
    "Signature": "Void DoConnect(System.Net.EndPoint, System.Net.SocketAddress)",
    "MemberType": 8
  },
  "HResult": -2147467259,
  "HelpURL": null
}
kind regards
Peter Tabangan