Skip to main content
deleted 1 character in body
Source Link
TNT
  • 331
  • 2
  • 4
  • 7

As an alternative to lsof you can use ss like this:

ss -tunlptlp 2>/dev/null | grep -E '\<sshd\>'

netstat is considered deprecated.

As an alternative to lsof you can use ss like this:

ss -tunlp 2>/dev/null | grep -E '\<sshd\>'

netstat is considered deprecated.

As an alternative to lsof you can use ss like this:

ss -tlp 2>/dev/null | grep -E '\<sshd\>'

netstat is considered deprecated.

Source Link
TNT
  • 331
  • 2
  • 4
  • 7

As an alternative to lsof you can use ss like this:

ss -tunlp 2>/dev/null | grep -E '\<sshd\>'

netstat is considered deprecated.