Server AdministrationUpdated November 24, 2026·4 min read

How to Install Webmin on Ubuntu Safely

To install Webmin on Ubuntu, you add the Webmin repository by executing the setup script it provides and then install the package, three commands in total. What needs additional attention is access, as Webmin can change everything on the server; therefore, exposing it online cannot be an option. This guide covers the install and a safe way in.

What Webmin is, and when to use it

Webmin is a control center based on a web interface of Linux systems. You can configure from your browser user management, packages management, service management, scheduling services, firewall rules, and other configuration files. This utility suits users who manage just a couple of servers and would like to use forms instead of configuration files, or who want a brief view of what is running on a server. If you already work comfortably on the command line, it adds an extra service to secure for little gain.

Install Webmin on Ubuntu

Download and run Webmin's repository setup script, then install:

curl -o webmin-setup-repo.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh
sudo sh webmin-setup-repo.sh
sudo apt-get install webmin --install-recommends

The script adds Webmin's repository and signing key, so you receive future updates through your usual apt upgrade. These commands are suitable for use on Ubuntu 24.04 and 26.04 as well. Verify the service:

sudo systemctl status webmin

Webmin launches an HTTPS server that listens for connections on port 10000.

Reach Webmin through an SSH tunnel

Do not allow access to port 10000 through the firewall; rather, tunnel this port over SSH from your computer.

ssh -L 10000:localhost:10000 user@your-server

Keep the SSH connection alive and visit https://localhost:10000. All traffic flows through your SSH connection. Nothing else about your server is revealed except SSH. The guide on enabling and securing SSH on Ubuntu covers the configuration of SSH login using keys.

Should you have to provide direct access, then allow it only from your very own IP. In the firewall, that means sudo ufw allow from 203.0.113.10 to any port 10000 proto tcp (with your IP). It needs to be done through Webmin > Webmin Configuration > IP Access Control as well.

Log in and handle the certificate warning

The web browser is going to give you a warning about the certificate. By default, Webmin creates a self-signed certificate that does not come with trusted status from your browser software. The session remains encrypted nevertheless. When using a tunnel via SSH, it is fine to accept the certificate; otherwise, change it to a valid one under the path Webmin > Webmin Configuration > SSL Encryption.

Use an account of Linux with sudo permissions. You can log in as root too, however, a stolen password would then get full control of your server, so use a normal admin user.

Turn on two-factor authentication

Under Webmin > Webmin Configuration > Two-Factor Authentication, select your authenticator application provider and click save. After that, Webmin lets each user enroll their authenticator application. In the future, a single password will no longer be adequate to login.

Keep it updated, or remove it

Updates for Webmin come through apt along with the rest of the system. This is covered in our article on what apt is in Linux. Should you stop using it, uninstall it, so there is one less service to patch:

sudo apt purge webmin

Next, delete the Webmin repository file the setup script created in /etc/apt/sources.list.d/.

A lighter alternative: Cockpit

Where the focus is monitoring resources, reviewing logs, and restarting services, a web-based console such as Cockpit is much simpler, as it operates on port 9090:

sudo apt install cockpit

Same tunneling tips apply. Instead of web panel if you want full GUI-based desktop from the server side then refer to our article related to Ubuntu Server GUI.

Every OrbitServers VPS runs Ubuntu 22.04/24.04/26.04, so Webmin installs in exactly this manner.

Was this article helpful?

Written by Julius · Product Manager