I'm trying to execute a command remotely via SSH from Python, and in this particular case need stdin to be redirected to /dev/null.
That is, the same as using the OpenSSH client with its -n flag:
ssh -n user@host cmd
How do you achieve this (-n) with Paramiko?
paramiko.SSHClient.exec_command() doesn't seem to allow this, but maybe I'm missing something?