{ claus.conrad }

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