Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
Last technical review · 17.08.2026 · Ubuntu 26.04 VPS

Ubuntu 26.04 LTS VPS: What to Do in the First 30 Minutes

A good VPS setup starts with access safety, not package installation. This guide orders users, SSH, firewall and update policy so you harden Ubuntu 26.04 without locking yourself out.

Production note

Keep the current SSH session open while changing SSH settings. Verify a second login and keep provider console access available until the new configuration is proven.

ubuntu 26.04 vps setupubuntu 26.04 ssh hardeningubuntu 26.04 ufw
TECHNICAL IMPLEMENTATION PROFILE
EKA CORE
Ubuntu 26.04 VPS

Create and test a second sudo user with SSH keys before restricting root/password login. Never enable UFW before allowing your SSH port.

23.04.2026LTS release date
Checked
04/2031Standard support
Checked
2 oturumSSH change rule
Checked
UFWFirewall order
Checked
Technical guide · production-focused · official sources
Quick answer

Create and test a second sudo user with SSH keys before restricting root/password login. Never enable UFW before allowing your SSH port.

01

Technical scope at a glance

Prepare an Ubuntu 26.04 LTS VPS for production: non-root administration, SSH keys, UFW, updates, swap, time sync, logs and recovery checks.

23.04.2026LTS release date

Ubuntu 26.04 LTS was released in April 2026.

04/2031Standard support

Standard security updates and critical fixes are planned through April 2031.

2 oturumSSH change rule

Keep one session open while validating the new key and port in a second session.

UFWFirewall order

Allow SSH first, then enable the firewall; reversing the order can lock you out.

On this page

  1. 1. Record the server baseline
  2. 2. Create a separate administrator account
  3. 3. Do not disable password login before key authentication works
  4. 4. Open UFW only for required services
  5. 5. Establish update and reboot policy
  6. 6. Size RAM and swap for the workload
  7. 7. Validate from outside after hardening
  8. Frequently asked questions
02

1. Record the server baseline

Capture kernel, disk, memory, IP and time state before changing anything.

Command
cat /etc/os-release
Command
uname -r
Command
ip -br address
Command
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS
Command
free -h
Command
timedatectl status
03

2. Create a separate administrator account

Daily root usage increases blast radius. A separate sudo user improves traceability and access policy.

Set a long unique password; it can still be required for sudo even if SSH uses keys.
Grant privileges through group membership; use `visudo` for custom sudo rules instead of unsafe manual edits.
Command
adduser ekaadmin
Command
usermod -aG sudo ekaadmin
Command
id ekaadmin
Command
sudo -l -U ekaadmin
04

3. Do not disable password login before key authentication works

Key installation, permissions and sshd syntax validation belong to the same change.

First verify `ssh ekaadmin@SERVER_IP` from a second terminal. Do not change root/password policy until that succeeds.
Ubuntu may use sshd include files that override settings. `sshd -T` shows effective values.
Command
install -d -m 700 -o ekaadmin -g ekaadmin /home/ekaadmin/.ssh
Command
nano /home/ekaadmin/.ssh/authorized_keys
Command
chown ekaadmin:ekaadmin /home/ekaadmin/.ssh/authorized_keys && chmod 600 /home/ekaadmin/.ssh/authorized_keys
Command
sshd -t
Command
systemctl reload ssh
05

4. Open UFW only for required services

A firewall does not start services; it only controls reachability. Match open ports to actual service requirements.

Command
sudo ufw default deny incoming
Command
sudo ufw default allow outgoing
Command
sudo ufw allow OpenSSH
Command
sudo ufw allow 80/tcp
Command
sudo ufw allow 443/tcp
Command
sudo ufw enable
Command
sudo ufw status numbered
06

5. Establish update and reboot policy

Security updates can be automated, but kernel and critical-service restarts still need maintenance windows and observation.

Review package changes before production updates; successful apt output does not prove application health.
After reboot, health-check SSH, web, database and scheduled jobs.
Command
sudo apt update
Command
sudo apt full-upgrade -y
Command
apt list --upgradable
Command
systemctl --failed
Command
test -f /var/run/reboot-required && cat /var/run/reboot-required || true
07

6. Size RAM and swap for the workload

Swap is not a performance upgrade; it is a buffer against transient memory pressure. Monitor swapping on databases and latency-sensitive workloads.

Command
swapon --show
Command
free -h
Command
cat /proc/sys/vm/swappiness
Command
journalctl -k | grep -i -E "oom|out of memory" | tail -30
08

7. Validate from outside after hardening

A service that works locally is not necessarily reachable correctly from the internet. Perform final checks from another network.

Command
ss -lntup
Command
systemctl --failed
Command
curl -4 https://ifconfig.me
Command
last -a | head
Command
sudo journalctl -p warning --since today --no-pager | tail -80
EKA SUNUCU · TECHNICAL

A clean, manageable VPS base for Ubuntu 26.04

CPU and RAM are only part of the design; backups, console access, storage and network policy matter too. Size an Eka Sunucu VPS for the workload and validate it with this checklist.

Production principleMeasure → Test → DeployNo fabricated benchmark data.
SRC

Official sources

Primary documentation and technical references used by this guide.

EKA

Related technical guides

Continue with related infrastructure and implementation guides.

FAQ

Frequently asked questions

Ubuntu 26.04 VPS

How long is Ubuntu 26.04 LTS supported?

Standard LTS security maintenance is planned through April 2031, with longer coverage available through Ubuntu Pro.

Must I change SSH from port 22?

No. A custom port can reduce scan noise but is not a core control. Key authentication, root restrictions and firewall policy matter more.

Does a VPS need swap?

It depends. Swap can absorb short memory spikes on small servers; sustained swapping usually indicates insufficient RAM.

What if UFW blocks SSH?

Use the provider console, inspect `ufw status numbered`, and allow the correct SSH port. This is why console access should be verified first.

Top