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 [email protected]). 🙂

 

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

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

3 Responses

  1. Viktor says:

    Thank you for sharing this!

  1. January 3, 2014

    […] Similar topic Change SSH port of a server having Webmin […]

Leave a Reply

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