Server security
Harden a remote server from the panel with Fail2ban, port review, SSH settings, updates and login activity.
The Security check panel hardens a remote server and shows what it exposes and who connects, without a terminal. Changes are applied over SSH.
Open the panel
Go to Servers, open the server and click Run check under Security check on the Overview tab. The card appears for servers with an SSH key. Viewing needs read access to servers. Applying changes needs create. Owners and admins have both.
Baseline recommendations
The panel reports these checks. Ubuntu and Debian are supported (experimental).
| Area | Recommended |
|---|---|
| OS | Keep packages updated. |
| UFW | Installed and active, default incoming policy deny, only necessary ports open. |
| SSH | Service enabled, key authentication on, password authentication off, PAM off when using keys. A non-standard port is optional. |
| Fail2ban | Installed, running, SSH jail enabled, aggressive mode. |
These are baselines. Your workload may need more.
Fail2ban
Fail2ban bans IPs that repeatedly fail SSH authentication. If it isn't installed, click Install & enable. Afterwards the tab shows its state, an Enabled switch and these settings:
| Setting | What it does | Default |
|---|---|---|
| Max retries | Failures before a ban. | 5 |
| Find time (minutes) | Window in which failures count. | 10 |
| Ban duration | Temporary (minutes) or Permanent, which lasts until you unban. | 60 minutes |
| Whitelisted IPs | One IP or CIDR per line, never banned. | none |
The panel's own IPs are always whitelisted, so wtree Cloud can't lock itself out. The tab lists jails with current and total counts and the banned IPs. You can Unban an IP or ban one permanently by entering it, which blocks it on every port. A Not configured by wtree Cloud badge means Fail2ban existed before this panel managed it.
Exposed ports
Lists ports listening on public interfaces with service, process, address and risk level. Reachable database ports (PostgreSQL, MySQL, MongoDB, Redis) and an unencrypted Docker API are flagged. The tab also shows UFW status.
Docker edits iptables directly, so published container ports bypass UFW. A port published with -p 3000:3000 stays public even if UFW denies it. Stop publishing the port, use ufw-docker, or block it with your provider's firewall (security groups, cloud firewalls), which acts before Docker's rules.
SSH
Shows daemon settings and the keys allowed to log in as the server's user.
| Setting | What it does |
|---|---|
| Password authentication | Allows password login. wtree Cloud uses a key, so disable it if you also log in with a key. |
| Root login | Key only, Allowed or Disabled. Can't be fully disabled when wtree Cloud connects as root. |
| Max auth tries | Attempts per connection, 1 to 10. |
Applying reloads the SSH daemon and keeps existing sessions open. wtree Cloud then reconnects to verify access. If it can't, the server restores the previous settings within 60 seconds.
The authorized keys table lists each key's type, fingerprint and comment. Removing a key stops anyone using it from logging in as that user.
Updates
Lists OS security patches and whether a reboot is needed. Checks work on Debian and Ubuntu and read from apt. If the lists are stale, run apt update on the server. wtree Cloud doesn't install updates.
Activity
- Active sessions: user, terminal, origin and start time. Disconnect a session, or disconnect and ban its IP.
- Recent logins.
- Failed logins by IP, with search.
Sessions from the panel's IP are marked, since they are usually a teammate using the panel terminal.
