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 Ashok

Cloud Infrastructure / DevOps Engineer. I know her (Linux) since many years. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

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 *