diff options
Diffstat (limited to 'reset-ssh-connections.sh')
| -rw-r--r-- | reset-ssh-connections.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/reset-ssh-connections.sh b/reset-ssh-connections.sh new file mode 100644 index 0000000..f19300d --- /dev/null +++ b/reset-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 |
