Created
January 2, 2010 20:39
-
-
Save lennart/267660 to your computer and use it in GitHub Desktop.
Who am I connected to over SSH? (Admin: Who is connected to me?)
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
lsof | sed -n "s/^\(sshd*\).*TCP \(\(.*\):[0-9][0-9]*\) (ESTABLISHED)$/\U\1:\L \2/p" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment