Servers
Firewall, users and SSH keys
Firewall rules, SSH access, server users with sudo or SFTP-only access, and your team's SSH key vault.
Firewall
Every server gets a default-deny firewall (nftables) during the baseline setup. Open Firewall on the server page to change it.
- SSH port and SSH allowed from: SSH is always allowed from these addresses (rate-limited), so you cannot lock yourself out. Enter addresses or CIDR ranges separated by commas;
0.0.0.0/0and::/0mean everyone. - Answer ping: whether the server replies to ping.
- Rules: each rule opens a protocol (TCP/UDP), a port or a port range (To port) to Everyone or to the addresses you list, with an optional note. Ports 80 and 443 are open for your sites.
Save and apply writes the new rules. Opening a database or cache port (MySQL, PostgreSQL, Redis/Valkey…) to everyone needs your passkey: it is almost always a mistake.
CrowdSec also runs on every server and blocks addresses that attack SSH or your sites.
Provider cloud firewall
If the server was created at, or linked to, Hetzner Cloud, DigitalOcean, Vultr or Akamai Linode, you can also sync its firewall to the provider's cloud firewall. Turn on Sync to the provider's cloud firewall under the firewall rules. Zefily then keeps one firewall at the provider attached to this server. It holds the SSH rule, ping when allowed and your rules, and every save of the firewall updates it. The panel's rules are written to that provider firewall group. Akamai Linode servers that use Linode interfaces are not supported yet.
Zefily checks the provider's firewall every 30 minutes. If someone changed its rules at the provider, the page shows the rules that differ and Re-sync now puts your rules back. Turning sync off deletes the firewall Zefily created, and nothing else at the provider. Only owners and admins can turn sync on or off or re-sync. AWS has no sync: the server firewall above still applies there.
Server users
Users lists the login users Zefily created on the server.
-
Create user: a username and a shell. Creating a user is immediate.
-
Choose SSH keys from your vault for the user, and turn Sudo on if they need administrator rights.
-
SFTP only jails the user in their home directory: file transfer over SFTP, no shell, no sudo. Their files go in
~/files. Use it for designers or clients who only upload files. -
Password sets the user's password (12 characters or more) or removes it. It is used for sudo and the server console; SSH stays key-only once root or a sudo user has a key. Only a SHA-512 hash of the password reaches the server; Zefily does not keep the password.
Assigning SSH keys, setting a password, granting sudo and deleting a user need your passkey. Sudo makes a user root-equivalent, so their terminal sessions and cron entries also need your passkey. Delete can also delete the home directory. The home moves to the server's protected trash for seven days, like a deleted site's files (see Add a site); tick Delete permanently now (no trash) to delete it at once. A user that still runs a site cannot be deleted: remove or move that site first, and the panel names the sites. A server whose agent predates the trash can delete the home only at once.
Each site has its own Linux user as well (shown on the site's General pane); you do not need to create those.
SSH keys
Settings → SSH keys is your team's key vault: add a name and a public key (ssh-ed25519, ssh-rsa or ecdsa); the fingerprint is shown. Stops working on gives a key an end date (for a contractor or temporary access): from that day the servers refuse it (OpenSSH expiry-time), and the vault shows how many days are left. Changing the date writes the keys again on every server user that has it. Assign keys to server users on each server's Users section. Removing a key from the vault does not remove it from servers it was assigned to — update those users too.
Create a key on your computer
If you have no key yet, create one on your own computer. Zefily stores only the public key that you paste.
- Linux and macOS (terminal):
ssh-keygen -t ed25519 -C "you [at] example [dot] com", thencat ~/.ssh/id_ed25519.pub. - Windows (PowerShell, with the OpenSSH client):
ssh-keygen -t ed25519 -C "you [at] example [dot] com", thenGet-Content $env:USERPROFILE\.ssh\id_ed25519.pub.
Press Enter to accept the default file (~/.ssh/id_ed25519, or $env:USERPROFILE\.ssh\id_ed25519 on Windows) and type a passphrase. The private key stays in that file. Paste the whole line that starts with ssh-ed25519 from the public key output into the key field. The key fields explain the same steps with copy buttons.
Zefily refuses a private key (a -----BEGIN … PRIVATE KEY----- block, or a PuTTY key) and a key type it does not support: use ssh-ed25519 (recommended), ECDSA, RSA of 2048 bits or more, or a security key. The comment after the key may be 200 characters at most.
Browser key generation is not offered: the panel shows the commands only, so the private key is always made and kept on your computer.
Once root or a sudo user has an SSH key, the baseline setup turns SSH password login off. See The server page.
Updated November 25, 2026 View as Markdown llms.txt