Background:
I am using python and paramiko to automate the process I go through everytime I have to hand in a program for a class. We use a command called
The problem might be that the remote command is waiting for input (it expects you to write something to stdin, not knowing that you aren't going to unless you tell so). Try stdin.channel.shutdown_write() (I believe stdin.close() by itself won't do the trick: that will only cause a flush)