I\'m using Paramiko to tail -f a file on a remote server.
Previously, we were running this via ssh -t, but that proved flaky, and the
There is one way to do this. It works like on the shell
ssh -t commandname
The option -t is opening a pseudo pty to help ssh to track how long this process should last. the same can be done via pormiko via
channel.get_pty()
prior to execute_command(...). This will not open a shell like it does with channel.invoke_shell(), it just requests such a pseudo interface to tie all processes to. The effect can also be seen if ps aux is issued on the remote machine, the process is now attached to the sshd with a ptxXY interface.