Here is my requirement, I need to sftp a file to a Unix server, then run a shell command to process that file, and then download the file processed by Unix server.
Currently I instantiate a Sftp object, do the file transfer, then instantiate a Ssh object to run the command, then use the same Sftp object to download file.
So, is it possible I can just open one connection to do all 3 tasks?