1# Any of the following
2sudo lsof -i -P -n | grep LISTEN
3sudo netstat -tulpn | grep LISTEN
4sudo lsof -i:22 # see a specific port such as 22
5sudo nmap -sTU -O IP-address-Here
1sudo lsof -i -P -n | grep LISTEN
2sudo netstat -tulpn | grep LISTEN
3sudo lsof -i:22 # see a specific port such as 22
4sudo nmap -sTU -O IP-address-Here