Issue - Unable to download the large files using pysftp
I am trying to put the file from local to target sftp using pysftp.
I have a file >500 MB to download using sftp connection.
I tried the following pysftp code and getting Error: <class ‘socket.error’>. Socket is closed
with pysftp.Connection(dest_host, port=dest_port,
cnopts=cnopts) as target_sftp
However, the same code is able to download the file that has below 18mb size.