From a7aba72c12756990b4ced0ba4d2367abadea416c Mon Sep 17 00:00:00 2001 From: Razvan Deaconescu Date: Thu, 21 Apr 2011 23:32:19 +0300 Subject: [PATCH] scripts: add dumb script to clean SSH tunnels --- scripts/kvm/cleanup-tunneled-ssh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/kvm/cleanup-tunneled-ssh diff --git a/scripts/kvm/cleanup-tunneled-ssh b/scripts/kvm/cleanup-tunneled-ssh new file mode 100644 index 0000000..9e09c59 --- /dev/null +++ b/scripts/kvm/cleanup-tunneled-ssh @@ -0,0 +1,5 @@ +#!/bin/bash + +# Dumb script. Copy-paste from command line. + +ps -ef | grep ssh | grep localhost | tr -s ' ' | cut -d ' ' -f 2 | xargs kill -- 2.20.1