Changing the default SSH port
Open the
/etc/ssh/sshd_config
file.sudo nano /etc/ssh/sshd_config
Change the SSH port and save the file.
Port 5333
Restart the SSH server to apply new configuration.
sudo systemctl restart sshd
Logout of your server and re-login using the new port.
ssh <user>@<ip_addr> -p 5333
Last updated
Was this helpful?