I'm trying to execute a shell command using paramiko's .exec_command() that will be a long running command (downloading files etc.) so I would like to execute the command and detach it from paramiko which will allow me to .close() the connection.
Right now I am using this shell command screen -d -m `my command here` basically creating a new screen every time.

Any tips on another way how to do it?