Monitoring open network connections and listening ports on Debian Lenny
๐
Sep 23, 2009
โ 1 minute
To monitor which network connections are established and which ports your Debian Lenny server is listening on, simply run:
sudo lsof -Pi
If this doesnโt work, you might have to install lsof
by running the following command:
sudo apt-get install lsof