netstat
現状のnetworkコネクションを見る。
netstat(8) - Linux man page
Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
netstat - How to check opened/closed port on my computer? - Ask Ubuntu
-l --listening
-a --all
-t --tcp
-u --udp
-n --numeric
-p --programs
で、 -tunlp tcp,udp,numeric,listening, programs(which uses the port and pid)
今、自分のところから、どれだけsshコネクションを張ってるかを見た。
$ netstat -tpna |grep ssh|grep 192
#tcp