Configure SSH
Next, the new port needs to be updated in the sshd server config file named sshd_config usually located under /etc/ssh/.
Open the file and look for a Port option which is usually commented out (#).
#Port 22
Remove the # symbol, change the default port from 22 to 5444 and save it,
Port 5444
Users should be careful while doing changes in the server config file as incorrect configuration might lead to the service not getting started up. As a proactive measure users can take a backup of the file before doing any changes.
How to change the default SSH port in Linux
SSH (Secure Shell) is a network protocol used to securely connect to the remote server where the data between the server and client is transferred in an encrypted format.
In the world of Linux system administration and security, one essential practice is changing the default SSH port. This article will guide you through the process of enhancing your server’s security by altering the default SSH port, providing you with valuable skills to protect your system from potential threats and unauthorized access. Join us in this informative exploration of “How to Change the Default SSH Port in Linux.”