aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@fastmailteam.com>2023-02-23 09:19:36 -0500
committerCalvin Morrison <calvin@fastmailteam.com>2023-02-23 09:19:36 -0500
commitb4400f9c7465cedf7afdff0ee4a2a24b13e1885d (patch)
treeaeab1dc7d8125562dd70d12fe0cd1e2fcc13a8b9
take itHEADmaster
-rw-r--r--README.md8
-rw-r--r--config3
-rwxr-xr-xkillssh3
3 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e80daa2
--- /dev/null
+++ b/README.md
@@ -0,0 +1,8 @@
+
+Do you use persistant connections?
+
+
+Do they get stuck when you unsleep your laptop?
+
+
+use kill-ssh! make your life easy.
diff --git a/config b/config
new file mode 100644
index 0000000..a280840
--- /dev/null
+++ b/config
@@ -0,0 +1,3 @@
+ControlMaster auto
+ControlPath /home/user/.ssh/control/master-%r@%h:%p
+ControlPersist true
diff --git a/killssh b/killssh
new file mode 100755
index 0000000..2761c34
--- /dev/null
+++ b/killssh
@@ -0,0 +1,3 @@
+#!/bin/bash
+kill `ps aux | grep '\[mux\]$' | awk '{print $2" "$12}' | sed -e 's/-22-.*.control//' | sed -e 's, .*/, ,' | dmenu | awk '{print $1}'`
+