{"id":898,"date":"2024-10-20T16:29:53","date_gmt":"2024-10-20T16:29:53","guid":{"rendered":"https:\/\/vpswebhostingindia.in\/blog\/?p=898"},"modified":"2024-10-20T16:29:55","modified_gmt":"2024-10-20T16:29:55","slug":"how-to-change-webmin-port-number-ssh","status":"publish","type":"post","link":"https:\/\/vpswebhostingindia.in\/blog\/how-to-change-webmin-port-number-ssh\/","title":{"rendered":"How to change Webmin Port number using Terminal\/SSH"},"content":{"rendered":"\n<p>change Webmin Port &#8211; <a href=\"https:\/\/webmin.com\/\" rel=\"nofollow noopener\" target=\"_blank\">Webmin is a powerful<\/a> web-based interface for managing Unix-like systems, offering administrators an easy way to control their server settings. By default, Webmin runs on port 10101, but for security reasons or to avoid conflicts with other services, you might want to change this port. In this tutorial, we\u2019ll guide you step by step on how to change the default Webmin port number using Terminal or SSH.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#why-change-the-webmin-port\">Why Change the Webmin Port?<\/a><\/li><li><a href=\"#prerequisites\">Prerequisites<\/a><\/li><li><a href=\"#step-by-step-guide-to-change-webmin-port\">Step-by-Step Guide to Change Webmin Port<\/a><ul><li><a href=\"#1-connect-to-your-server-via-ssh\">1. Connect to Your Server via SSH<\/a><\/li><li><a href=\"#2-navigate-to-webmin-configuration-file\">2. Navigate to Webmin Configuration File<\/a><\/li><li><a href=\"#4-save-the-changes\">4. Save the Changes<\/a><\/li><li><a href=\"#5-restart-webmin-service\">5. Restart Webmin Service<\/a><\/li><li><a href=\"#6-access-webmin-on-the-new-port\">6. Access Webmin on the New Port<\/a><\/li><li><a href=\"#7-verify-the-change\">7. Verify the Change<\/a><\/li><\/ul><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"why-change-the-webmin-port\">Why Change the Webmin Port?<\/h3>\n\n\n\n<p>Changing the default port for Webmin is recommended for several reasons:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Enhanced security<\/strong>: Using a non-standard port helps reduce the chances of automated attacks on your server.<\/li>\n\n\n\n<li><strong>Port conflict avoidance<\/strong>: If another service on your server is using port 10101, switching Webmin to a different port can prevent potential conflicts.<\/li>\n\n\n\n<li><strong>Customization<\/strong>: Personalizing your Webmin setup can streamline your workflow and network configurations.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SSH access to your server (using a terminal or an SSH client like PuTTY).<\/li>\n\n\n\n<li>Root or sudo privileges.<\/li>\n\n\n\n<li>Webmin installed and running.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-by-step-guide-to-change-webmin-port\">Step-by-Step Guide to Change Webmin Port<\/h3>\n\n\n\n<p>Follow these steps to change the default Webmin port:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"1-connect-to-your-server-via-ssh\">1. Connect to Your Server via SSH<\/h4>\n\n\n\n<p>You\u2019ll need to log into your server (purchased from <a href=\"https:\/\/vpswebhostingindia.in\/\">vpswebhostingindia<\/a>) using SSH. For Windows users, use an SSH client like <a href=\"https:\/\/www.putty.org\/\" rel=\"nofollow noopener\" target=\"_blank\">PuTTY<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"448\" height=\"442\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-10.png\" alt=\"change Webmin Port\" class=\"wp-image-903\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-10.png 448w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-10-300x296.png 300w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"2-navigate-to-webmin-configuration-file\"><strong>2. Navigate to Webmin Configuration File<\/strong><\/h4>\n\n\n\n<p>Webmin\u2019s configuration file is typically located at <code>\/etc\/webmin\/miniserv.conf<\/code>. You can open and edit this file using a text editor like <code>nano<\/code> or <code>vi<\/code>. Let\u2019s use <code>nano<\/code> for this example:<\/p>\n\n\n\n<p class=\"has-black-color has-cyan-bluish-gray-background-color has-text-color has-background has-link-color wp-elements-5c559cc485c4c94f23cc96f24fe99d1f\"><strong>vi \/etc\/webmin\/miniserv.conf<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"167\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-8.png\" alt=\"\" class=\"wp-image-901\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-8.png 726w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-8-300x69.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/figure>\n\n\n\n<p><strong>3. Modify the Port Number<\/strong><\/p>\n\n\n\n<p>Once you have the configuration file open, look for the line that starts with <code>port=10101<\/code>. This specifies the port number Webmin is currently using. Change the port number to the desired value (e.g., <code>port=30555<\/code>).<\/p>\n\n\n\n<p><strong>Before Changing:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"1013\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-7.png\" alt=\"\" class=\"wp-image-900\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-7.png 787w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-7-233x300.png 233w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-7-768x989.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/figure>\n\n\n\n<p><strong>After Changing:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"823\" height=\"1023\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-6.png\" alt=\"\" class=\"wp-image-899\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-6.png 823w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-6-241x300.png 241w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-6-768x955.png 768w\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"4-save-the-changes\"><strong>4. Save the Changes<\/strong><\/h4>\n\n\n\n<p>If you\u2019re using vi, save the file by pressing esc :wq and hit Enter<\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p><code>nano<\/code>, save the file by pressing <code>CTRL + O<\/code> and hit <code>Enter<\/code>, then exit the editor by pressing <code>CTRL + X<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"5-restart-webmin-service\"><strong>5. Restart Webmin Service<\/strong><\/h4>\n\n\n\n<p>To apply the changes, you\u2019ll need to restart the Webmin service. Use the following command to restart it:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background has-link-color wp-elements-cbfbf054df9f04d6bc2575a76e82dd07\">sudo systemctl restart webmin<\/pre>\n\n\n\n<p>Alternatively, on older systems or if <code>systemctl<\/code> doesn\u2019t work, you can use:<\/p>\n\n\n\n<p class=\"has-black-color has-cyan-bluish-gray-background-color has-text-color has-background has-link-color wp-elements-8a53617434c68afa9612bdc8b2b65d25\">\/etc\/init.d\/webmin restart<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"6-access-webmin-on-the-new-port\">6. <strong>Access Webmin on the New Port<\/strong><\/h4>\n\n\n\n<p>Now, Webmin should be accessible on the new port. Open your browser and go to:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background has-link-color wp-elements-d35eb379866c4a48d1ebdd1a667d6aec\">http:\/\/your-server-ip:new-port<\/pre>\n\n\n\n<p>For example, if you changed the port to 30555:<\/p>\n\n\n\n<p class=\"has-black-color has-cyan-bluish-gray-background-color has-text-color has-background has-link-color wp-elements-c3bd6fbb806a590165baca3e62beed05\"><code>http:\/\/your-server-ip:30555<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"568\" src=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-11-1024x568.png\" alt=\"\" class=\"wp-image-904\" srcset=\"https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-11-1024x568.png 1024w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-11-300x166.png 300w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-11-768x426.png 768w, https:\/\/vpswebhostingindia.in\/blog\/wp-content\/uploads\/2024\/10\/image-11.png 1373w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Make sure to replace <code>your-server-ip<\/code> with your actual server&#8217;s IP address and <code>new-port<\/code> with the port you configured.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"7-verify-the-change\"><strong>7. Verify the Change<\/strong><\/h4>\n\n\n\n<p>After accessing Webmin on the new port, verify that everything is functioning correctly by logging into the Webmin interface. If the connection fails, check your <a href=\"https:\/\/en.wikipedia.org\/wiki\/Firewall_(computing)\" rel=\"nofollow noopener\" target=\"_blank\">firewall<\/a> rules and make sure the Webmin service restarted successfully.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h3>\n\n\n\n<p>Changing the default Webmin port (change webmin port) is a simple yet effective way to enhance your server\u2019s security and prevent potential port conflicts. By following the steps above, you can quickly modify the Webmin port using SSH and adjust your server\u2019s settings accordingly. Remember to always document the changes you make to avoid confusion down the road and ensure your firewall rules are properly configured to allow access on the new port.<\/p>\n\n\n\n<p>Now that you&#8217;ve secured Webmin by changing its port, you can enjoy safer server management!<\/p>\n\n\n\n<p>change webmin port change webmin port<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>change Webmin Port &#8211; Webmin is a powerful web-based interface for managing Unix-like systems, offering administrators an easy way to control their server settings. By default, Webmin runs on port 10101, but for security reasons or to avoid conflicts with other services, you might want to change this port. In this tutorial, we\u2019ll guide you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"_eb_attr":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-898","post","type-post","status-publish","format-standard","hentry","category-ftp"],"_links":{"self":[{"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/posts\/898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/comments?post=898"}],"version-history":[{"count":2,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/posts\/898\/revisions"}],"predecessor-version":[{"id":909,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/posts\/898\/revisions\/909"}],"wp:attachment":[{"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/media?parent=898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/categories?post=898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpswebhostingindia.in\/blog\/wp-json\/wp\/v2\/tags?post=898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}