Checking what is running / listening / responding on port X
Under *nix operating systems you can use the netstat utility to view connections on each portfrom an ssh prompt as root type:
netstat -apn | grep ":X"
where X is replaced by the port number
so to see what is happening on the SSH port 22 you would use...
netstat -apn | grep ":22"