Skip to content
Discussion options

You must be logged in to vote

Changing the SSH port can reduce noise from automated scans, but it should not be treated as a primary security control.

I'd prioritize stronger protections first:

  • Use SSH public-key authentication.
  • Disable password authentication when operationally appropriate.
  • Disable direct root login.
  • Restrict SSH access using firewall rules or a VPN.
  • Apply security updates and monitor authentication logs.

If changing the port is justified, I'd update the SSH server configuration, validate it before reloading, and ensure that the new port is allowed through every relevant firewall and network security rule.

I'd keep an existing administrative session open and test a second connection before closing …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vedantghode32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants