Last active
May 2, 2018 21:58
-
-
Save saxenap/c89dc003311ed98186cf76a451a7cd2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://askubuntu.com/a/608960 | |
ss -ant | grep -e "ESTAB" | grep ":22" | tr -s ' ' | cut -d' ' -f5 | cut -d':' -f1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment