Change SSH Port
Change the SSH server port (default 22)
Overview
Change the SSH server port (default 22)
Commands
This will change SSH port to {port}. Make sure your firewall allows it, continue?
sudo sed -i 's/^#\?Port .*/Port {port}/' /etc/ssh/sshd_config
sudo systemctl restart sshd