openSUSE Leap VPS Setup Guide
Patch an openSUSE Leap server with zypper, secure it with firewalld and SELinux, and manage it from a browser.
openSUSE Leap shares its foundations with SUSE Linux Enterprise. This guide uses zypper for patching, firewalld for network rules and optionally Cockpit for browser-based management.
- Works on: openSUSE Leap 16.0
- Recommended server: 2 GB of RAM or more
- Support: Leap 16.0 is supported until about October 2027
Order your server
Choose openSUSE at checkout. We email the root password when your server is ready.
Log in and check the release
Connect from your own terminal.
ssh root@YOUR_SERVER_IP
cat /etc/os-releaseRefresh repositories and update
zypper update installs newer packages, while zypper patch applies only official fixes, which is what you want for routine maintenance.
zypper refresh
zypper update -y
zypper patch-checkCreate an admin user
Your sudo policy decides what wheel members can do, so check /etc/sudoers before relying on it. This also adds a sudo rule for the wheel group, so that your new user can run admin commands once root login is off.
useradd -m deploy
passwd deploy
usermod -aG wheel deploy
echo "%wheel ALL=(ALL:ALL) ALL" > /etc/sudoers.d/wheel
chmod 440 /etc/sudoers.d/wheel
# on your own computer
ssh-copy-id deploy@YOUR_SERVER_IPTighten SSH access
Add a small policy file, test it, and restart the service.
Check that your new login works before ending your session.
mkdir -p /etc/ssh/sshd_config.d
tee /etc/ssh/sshd_config.d/10-hardening.conf > /dev/null <<'EOF'
PermitRootLogin no
PasswordAuthentication no
EOF
sshd -t && systemctl restart sshdConfigure firewalld
Allow SSH, then add your other services by name.
sudo systemctl enable --now firewalld
sudo firewall-cmd --permanent --add-service=ssh
sudo firewall-cmd --reload
sudo firewall-cmd --list-allCheck SELinux
New Leap 16 installs use SELinux as their security module, which limits what programs can do. Confirm that it is enforcing, and read any denials before changing a policy.
getenforce
sestatusAdd Cockpit if you like a web console
Cockpit lets you view logs, services and updates from a browser. Keep it restricted to your own address.
sudo zypper install -y cockpit
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="YOUR_OWN_IP" service name="cockpit" accept'
sudo firewall-cmd --reloadPlan your release upgrades
Keep Leap in a supported state:
- Run zypper patch regularly
- Before support for Leap 16.0 ends around October 2027, move to the next 16.x release
- Take a backup before any release upgrade
Get a server for this guide
openSUSE Leap plans run everything in this guide, from $10.99/mo.
See openSUSE Leap plansTable of Contents
- 1.1. Order your server
- 2.2. Log in and check the release
- 3.3. Refresh repositories and update
- 4.4. Create an admin user
- 5.5. Tighten SSH access
- 6.6. Configure firewalld
- 7.7. Check SELinux
- 8.8. Add Cockpit if you like a web console
- 9.9. Plan your release upgrades
openSUSE Leap VPS Setup Guide: Frequently Asked Questions
Quick answers to common questions.
How do I check which openSUSE Leap release my VPS runs?
Log in over SSH as root with the password we email when the server is ready, then run cat /etc/os-release. It shows the distribution name and version, such as openSUSE Leap 16.0. Check this before following the rest of the guide, because Leap 16.0 is supported until about October 2027, after which you move to the next 16.x release.
How do I install Cockpit on openSUSE Leap?
Install it with sudo zypper install -y cockpit and enable cockpit.socket with systemctl. Then add a firewalld rich rule that accepts the cockpit service only from your own address, and reload firewalld. Cockpit lets you view logs, services and updates on your openSUSE Leap server from a browser.
How do I give a user sudo access on openSUSE Leap?
Create the user with useradd -m, set a password and add them to the wheel group with usermod -aG wheel. Then create /etc/sudoers.d/wheel containing %wheel ALL=(ALL:ALL) ALL and set its permissions to 440, so wheel members can run admin commands once root login is off. Check /etc/sudoers on openSUSE Leap before relying on it.
Does openSUSE Leap 16 use SELinux or AppArmor?
New openSUSE Leap 16 installs use SELinux as their security module, which limits what programs can do. Run getenforce or sestatus to confirm it is enforcing. If something is blocked, read the denial before changing a policy instead of turning SELinux off.
How do I set up firewalld on an openSUSE Leap VPS?
Enable firewalld with systemctl enable --now firewalld, allow SSH with firewall-cmd --permanent --add-service=ssh and reload the rules. Add your other services by name the same way, then run firewall-cmd --list-all to see exactly what your openSUSE Leap server exposes to the internet. Named services save you from remembering port numbers.
When should I upgrade from openSUSE Leap 16.0?
Plan to move from openSUSE Leap 16.0 to the next 16.x release before its support ends, around October 2027. Take a backup before any release upgrade, and keep running zypper patch until then so the server stays in a supported state.
How do I disable root SSH login on openSUSE Leap?
Create /etc/ssh/sshd_config.d/ if it is missing, add a file with PermitRootLogin no and PasswordAuthentication no, run sshd -t and restart sshd. Do this only after copying your SSH key to your admin user and giving it sudo rights, and check that the new login works before ending your openSUSE Leap session.
Explore More VPS Hosting Options
Find the right server for your project.