The exception occurred only at the time of .net framework upgrade. Earlier, the framework was 4.6.1, and now it is 4.8.
It is working perfectly fine in the older version of the.net framework. The error is not a blocker, means it is not blocking the entire functionality. it troughing below exceptions frequently.
****The connection was closed by the server. Make sure you are connecting to an SSH or SFTP server****
It is taking more than 2 hours to download a single file; it seems not at all productive.
It is SSH enabled, key based authentication in the SFTP server.