Change SSH Port

Changing default SSH port can be one of the steps to improve security in Linux servers. By changing SSH port to something other than port 22 and using a proper firewall you may have a good result on minimizing brute-force attacks to SSH.

To change SSH listening port you are required to edit /etc/ssh/sshd_config file. You may use nano, vi or any other text editor you like based on the Linux distro you are using.

change the Line “ Port 22 “ to whatever you want and restart the SSHD service. make sure the line is not commented otherwise your changes won’t be counted. It is also required to change your firewall setting and allow connections to your desired port through your firewall.

 

Incoming search terms:

  • https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1833 zq5MRMgT6SZCNEWxSncilODu-JoCJQs-LPE_DvK5E0hWq9NSXunb8ieQAAdVUQqM 7cd77a3d426161a981f6b0accc41c9dc070f669d&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme

Join the Conversation

1 Comment

Leave a comment

Leave a Reply