Interview Prep/Linux/SSH & Access Hardening

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.

All Linux questions Roadmap: Linux

More on SSH & Access Hardening