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, username=abcd, private_key=target_key_path, private_key_pass=1234, cnopts=cnopts) as target_sftp
However, the same code is able to download the file that has below 18mb size.