Skip to content

Instantly share code, notes, and snippets.

@bamoo456
Created August 6, 2018 13:08
Show Gist options
  • Save bamoo456/e80a07f6410a2cdd97a00f580b4a4841 to your computer and use it in GitHub Desktop.
Save bamoo456/e80a07f6410a2cdd97a00f580b4a4841 to your computer and use it in GitHub Desktop.
For showing current server listen ports
sudo lsof -iTCP -sTCP:LISTEN | grep sshd
lsof -i -P -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment