When using the SFTP Task how can I prevent the connection from closing
If you use the SFTP Task to stream data, set the RetainSameConnection parameter to TRUE on the connection manager.
Otherwise, the connection will be closed before all the data is transferred.