ss - another utility to investigate sockets
ss
is used to dump socket statistics. It allows showing information similar to netstat
. It can display more TCP and state information than other tools.
TCP und UDP Ports:
ss --tcp --udp --listening
Alle TCP Sockets:
ss --tcp --all
Alle UDP Sockets:
ss --udp --all
Alle aufgebauten SSH-Verbindungen
ss -o state established '( dport = :ssh or sport = :ssh )'