How to List All Open/Listening Ports

If you find yourself needing to check all open/listening ports that your server is using (a good idea for security), run the follow command via SSH:

# netstat -tulp

The command will print a list of all open ports, the programs using them, their PIDs, local addresses, and connection type (tcp/udp).

  • payment
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to close an open DNS resolver - Linux

Locate the BIND configuration file within the operating system. The BIND configuration file is...

How to Optimize MySQL with MySQLTuner

MySQLTuner is a script that will assess MySQL performance and recommend steps to maximize...

How to Modify SSH to Use a Port Other than 22

  A simple, but very effective, step you can take to enhance your server's security is to update...

How to Install ConfigServer Firewall (CSF)

ConfigServer Firewall, or CSF, is a common Linux security suite. Log in to your VPS as the root...

How to Check VPS Memory/RAM Usage with SSH

There are a few tools built-in to most Linux distros for gauging and fine-tuning your server's...