Free tool

Open ports explainer.

Paste the list of ports your Linux server is listening on and see what each one is, whether the internet can reach it, and what to do about it. Runs in your browser: nothing you paste leaves this page.

List the ports your server is listening on

ss ships with every current Linux distribution. The flags mean TCP (t), UDP (u), listening sockets only (l), the program that owns each one (p), and numbers instead of names (n). Without sudo, the program names are missing.

sudo ss -tulpn

On older systems, sudo netstat -tulpn gives the same list (it's in the net-tools package). The output shows only addresses, ports and program names, no passwords or keys.

SSH open? Check its settings with the SSH config checker. For the rest of a new server's setup, see the Linux VPS security checklist.