Filed under:

How do I see what is running / listening / responding on a port ?




Checking what is running / listening / responding on port X

Under *nix operating systems you can use the netstat utility to view connections on each port

from 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"

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Language: