scripts: add dumb script to clean SSH tunnels
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Thu, 21 Apr 2011 20:32:19 +0000 (23:32 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Thu, 21 Apr 2011 20:32:39 +0000 (23:32 +0300)
scripts/kvm/cleanup-tunneled-ssh [new file with mode: 0644]

diff --git a/scripts/kvm/cleanup-tunneled-ssh b/scripts/kvm/cleanup-tunneled-ssh
new file mode 100644 (file)
index 0000000..9e09c59
--- /dev/null
@@ -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