netstat -natp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:1935 0.0.0.0:* LISTEN 915/nginx
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 915/nginx
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 951/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 911/sshd
tcp 0 0 192.168.1.73:22 192.168.1.6:64436 ESTABLISHED 1356/sshd: frank [p
tcp 0 0 192.168.1.73:22 192.168.1.6:64498 ESTABLISHED 1400/sshd: frank [p
tcp 0 64 192.168.1.73:22 192.168.1.6:64384 ESTABLISHED 1283/sshd: frank [p
tcp6 0 0 :::22 :::* LISTEN 911/sshd