I am running ssh from within Python without the use of an external library like Paramiko. I have my reasons for doing it this way instead of through an external library.
Basically I am doing subprocess.Popen("ssh -t bla -- command")
I get the following message when doing this:
Pseudo-terminal will not be allocated because stdin is not a terminal.
The reason I am running it with -t
is I want the remote command to terminate when I kill my python script.
When I try with -t -t
(to force it), I get the following message:
tcgetattr: Inappropriate ioctl for device
Is there a way I can run my ssh command with -t
through Python?