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:
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
Step 3,
Un comment the port option from the configuration file and set a new port number value here and click the save option.
Step 4,
Then click the apply changes button to apply the current configuration by sending a SIGHUP signal to the running SSHd process.
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
Thank you for sharing this!
Thanks for your feedback. 🙂