TCP connections that are currently listening
ss -lt- use
ufor UDP andafor all connections even RAW, UNIX sockets
Watch statistics of total system connection
watch ss -sSpecify IPv4 or v6
ss -46Whether SSH port is listening
ss -at '( dport = :22 or sport = :22 )'