Should you change the SSH port from 22?
IntermediateProductionSSH & Access Hardening
Answer
It cuts log noise from automated scanners but is not real security; targeted scans find it in seconds. The real controls are: keys only, no root login, restricting source IPs with security groups or a firewall, and ideally not exposing SSH at all (bastion, VPN, AWS SSM Session Manager, or a zero-trust access proxy). If you do change it on SELinux systems you must also run semanage port -a -t ssh_port_t -p tcp 2222.
More on SSH & Access Hardening
What are the first sshd_config changes you make on a new production server?BeginnerWhy use a drop-in file in /etc/ssh/sshd_config.d/ instead of editing sshd_config?IntermediateWhy disable SSH password authentication entirely?BeginnerWhat are SSH certificates and why do large fleets use them?AdvancedHow do you restrict what a specific SSH key can do?AdvancedHow do you apply different sshd rules for different users or networks?Intermediate