How to change SSH port of a server with Webmin control panel

Hey! It’s really cool to change the SSH port of the server which has Webmin as web-hosting control panel. Every web-server owner may not have enough knowledge to manage those things via Linux shell command. In those cases, a control panel is helpful to edit such configuration files of the server from frond-end. By using the control panel Webmin, every one can simply change their server’s SSH port from its default.

Changing the SSH port value from its default will protect the server from unwanted login attack. Here I’m explaining the steps to change SSH port number of server via Webmin.

Steps to chaange the default port – Using Webmin

Step 1,
Login to Webmin panel:

http://yourIPaddress:10000
User : root
Password : Your.root.password

This image will help you:

Selection_099

Step 2,

Expand servers and select SSH server from the left most side from the webmin control panel and click to the edit config files option

Selection_100

Step 3,

Un comment the port option from the configuration file and set a new port number value here and click the save option.

Selection_101

Step 4,

Then click the apply changes button to apply the current configuration by sending a SIGHUP signal to the running SSHd process.

Selection_102

Thats it… You can access your server via SSH by using the new port number (ssh -p 2229 root@yourIPaddress). 🙂

 

Related Links:
Install webmin on Debian 4,5,6
Install webmin on Ubuntu 12, 13, 14

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

3 thoughts on “How to change SSH port of a server with Webmin control panel

Leave a Reply

Your email address will not be published. Required fields are marked *