[root@centos7 ~]#netstat -t | grep ':ssh'|tr -s ' '|cut -d ' ' -f5|cut -d: -f1 | uniq -c|sort -rn
2 192.168.37.1
1 192.168.37.102
1 192.168.37.100
[root@centos7 ~]#netstat -t | grep ':ssh'|tr -s ' '|cut -d ' ' -f5|cut -d: -f1 | uniq -c|sort -rn
2 192.168.37.1
1 192.168.37.102
1 192.168.37.100