diff options
| author | Super User <root@p.noml.ch> | 2026-03-23 19:11:41 +0800 |
|---|---|---|
| committer | Super User <root@p.noml.ch> | 2026-03-23 19:11:41 +0800 |
| commit | 9fb10a95ff4275ca2b82c18c0ed8600cd5575319 (patch) | |
| tree | 949b57aa1a3e1cb19fff5dd23098d1e462c82219 /port-forward/rm_all_ssh_connections.sh | |
| parent | c332cf11dc0266f31eeae067ace5a9bda18122c6 (diff) | |
remove git and port-forward dirs
Diffstat (limited to 'port-forward/rm_all_ssh_connections.sh')
| -rwxr-xr-x | port-forward/rm_all_ssh_connections.sh | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/port-forward/rm_all_ssh_connections.sh b/port-forward/rm_all_ssh_connections.sh deleted file mode 100755 index f19300d..0000000 --- a/port-forward/rm_all_ssh_connections.sh +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | ss -tnp | grep ':22' | ||
| 3 | ps -ef | grep sshd | grep -v grep | awk '{if($3!=1) print $2}' | xargs kill | ||
| 4 | #sudo systemctl restart sshd | ||
