ss parametre
Brug
Et værktøj til at undersøge sockets
Parametre
-n Prøv ikke at resolve service navne.
-r Prøv at resolve service porte samt ip adresser.
-l Lyt kun.
Eksempler
$ ss -t -a State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 80 127.0.0.1:mysql 0.0.0.0:* LISTEN 0 128 0.0.0.0:37931 0.0.0.0:* LISTEN 0 64 0.0.0.0:39085 0.0.0.0:* LISTEN 0 128 0.0.0.0:sunrpc 0.0.0.0:* LISTEN 0 32 192.168.122.1:domain 0.0.0.0:* LISTEN 0 128 127.0.0.53%lo:domain 0.0.0.0:* LISTEN 0 5 127.0.0.1:ipp 0.0.0.0:* LISTEN 0 128 127.0.0.1:41049 0.0.0.0:* LISTEN 0 128 0.0.0.0:57177 0.0.0.0:* LISTEN 0 128 0.0.0.0:36127 0.0.0.0:* LISTEN 0 64 [::]:34863 [::]:* LISTEN 0 128 [::]:sunrpc [::]:* LISTEN 0 128 *:http *:* LISTEN 0 128 [::]:34737 [::]:* LISTEN 0 5 [::1]:ipp [::]:* LISTEN 0 128 [::]:48797 [::]:* LISTEN 0 128 [::]:58975 [::]:* [::]:*
Viser alle TCP forbindelser.
$ ss -u -a State Recv-Q Send-Q Local Address:Port Peer Address:Port UNCONN 0 0 0.0.0.0:941 0.0.0.0:* UNCONN 0 0 224.0.0.251:mdns 0.0.0.0:* UNCONN 0 0 224.0.0.251:mdns 0.0.0.0:* UNCONN 0 0 224.0.0.251:mdns 0.0.0.0:* UNCONN 0 0 0.0.0.0:47635 0.0.0.0:* UNCONN 0 0 0.0.0.0:40564 0.0.0.0:* UNCONN 0 0 192.168.122.1:domain 0.0.0.0:* UNCONN 0 0 127.0.0.53%lo:domain 0.0.0.0:* UNCONN 0 0 0.0.0.0%virbr0:bootps 0.0.0.0:* UNCONN 0 0 0.0.0.0:bootpc 0.0.0.0:* UNCONN 0 0 0.0.0.0:bootpc 0.0.0.0:* UNCONN 0 0 0.0.0.0:sunrpc 0.0.0.0:* UNCONN 0 0 0.0.0.0:53434 0.0.0.0:* UNCONN 0 0 0.0.0.0:53780 0.0.0.0:* UNCONN 0 0 0.0.0.0:ipp 0.0.0.0:* UNCONN 0 0 0.0.0.0:33595 0.0.0.0:* UNCONN 0 0 [::]:941 [::]:* UNCONN 0 0 [::]:58491 [::]:* UNCONN 0 0 [::]:mdns [::]:* UNCONN 0 0 [::]:42333 [::]:* UNCONN 0 0 [::]:58851 [::]:* UNCONN 0 0 [::]:34924 [::]:* UNCONN 0 0 [::]:39770 [::]:* UNCONN 0 0 [::]:sunrpc [::]:*
Viser alle UDP forbindelser.
$ ss -o state established ‘( dport = :ssh or sport = :ssh )’
Viser alle etableret SSH forbindelser.