Paramiko and exec_command - killing remote process?
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 -t caused issues with our remote scheduling system. My question is how to kill tail when the script catches a SIGINT? My script (based on Long-running ssh commands in python paramiko module (and how to end them) ) #!/usr/bin/env python2 import paramiko import select client = paramiko.SSHClient() client.load_system_host_keys() client.connect('someserver', username='victorhooi', password='blahblah') transport = client.get_transport() channel = transport.open