{
  "id": 22681812,
  "title": "server-check: check SSH settings and open ports from the command line",
  "url": "https://urgent.news/2026/11/29/server-check-check-ssh-settings-and-open-ports-from-the-command-line",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-29T23:10:03.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/als-ops/server-check-check-ssh-settings-and-open-ports-from-the-command-line-57d3"
  },
  "original_language": null,
  "account": "Server hardening advice often concludes with \"now check your configuration.\" This involves reading the sshd_config file, recognizing that files in sshd_config.d can override it, understanding which defaults apply to settings not explicitly written, and then using the ss command to determine which ports are open. It's easy to overlook this step, and server-check automates this process. It examines the actual settings used by sshd and the ports currently in use, listing any adjustments needed in simple English with instructions on how to make the changes. The tool is free, licensed under the MIT license, and is available on GitHub. Server-check is also available on npm. To use it, you need Node.js 18 or later on the server. Run it with sudo since sshd -T only works as root and ss displays program names only to root. Run the command like this: sudo npx alsops-server-check. It reads two things: the output of sshd -T, which reflects the final configuration after all includes and defaults, and the output of ss -tulpn (or netstat -tulpn if ss is not installed). This check does not send any data anywhere and does not alter anything on the server.",
  "summary": "Most server hardening advice ends with “now check your config”. Checking means reading sshd_config, remembering that files in sshd_config.d can override it, knowing which defaults apply to settings nobody wrote down, and then running ss and working out what each port is. It’s easy to skip, so it gets skipped. server-check does that part. It reads the settings sshd actually uses and the ports that…",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}