Aug-10-2017, 07:55 PM
Then you don't want to use paramiko, as that doesn't leave connections open. The answer given in the SO article you linked is to simply use subprocess to call the system's ssh command. In your case, you'd probably supply stdin to subprocess.