This document is meant to serve as a basic guide for hardening a Linux server.
sudo nano /etc/ssh/sshd_config
- Uncomment
#Port 22
and change it toPort <SSH_PORT>
. (Replace<SSH_PORT>
with your desired port to use for SSH connectivity.) sudo systemctl restart ssh
reboot