Error while connecting SFTP: No connection could be made because the target machine actively refused it was one exception we got. Connection attempt timed out.
Connectivity failure happened intermittently in between.
We are connecting as below in windows service
objSFTP.Connect(sSFTPHost[0], int.Parse(sSFTPHost[1]));
objSFTP.Login(sSFTPHost[2], sSFTPHost[3]);