Long-running ssh commands in python paramiko module (and how to end them)

后端 未结 6 1762
野性不改
野性不改 2020-11-30 02:39

I want to run a tail -f logfile command on a remote machine using python\'s paramiko module. I\'ve been attempting it so far in the following fashion:

6条回答
  •  执笔经年
    2020-11-30 03:06

    Just for information, there is a solution to do this using channel.get_pty(). Fore more details have a look at: https://stackoverflow.com/a/11190727/1480181

提交回复
热议问题