From c332cf11dc0266f31eeae067ace5a9bda18122c6 Mon Sep 17 00:00:00 2001 From: Super User Date: Mon, 23 Mar 2026 19:09:37 +0800 Subject: flatten setup directory structure --- port-forward/rm_all_ssh_connections.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 port-forward/rm_all_ssh_connections.sh (limited to 'port-forward/rm_all_ssh_connections.sh') diff --git a/port-forward/rm_all_ssh_connections.sh b/port-forward/rm_all_ssh_connections.sh new file mode 100755 index 0000000..f19300d --- /dev/null +++ b/port-forward/rm_all_ssh_connections.sh @@ -0,0 +1,4 @@ +#!/bin/bash +ss -tnp | grep ':22' +ps -ef | grep sshd | grep -v grep | awk '{if($3!=1) print $2}' | xargs kill +#sudo systemctl restart sshd -- cgit