Skip to content

Secure your Linux server before launch

Start with access, updates and the network ports your app needs. Make one change at a time and keep a way back into the server.

Read the guide

Verify the handover

Use the server details attached to your order. Check the hostname or address and verify the SSH host fingerprint through a trusted handover channel before accepting it.

An unexpected fingerprint change deserves a check. Do not disable host-key checking just to remove a warning.

Set up a named administrator

Create a separate administrator account and use a strong SSH key. Keep its private key on a device you control, protected by a passphrase where possible.

Keep the current session open while testing a second sign-in. Confirm that the new account can perform the required admin tasks before restricting password login or direct root access.

Install updates

Apply the security updates for your selected distribution, and check whether a restart is needed. Schedule later updates so they do not become a task nobody owns.

Use the distribution’s official documentation for the exact commands. Debian, Ubuntu, AlmaLinux and Rocky Linux do not all use the same package or firewall tools.

Open only the ports you use

Allow the working administration connection before enabling a firewall. Then open the application ports that are needed, such as HTTPS for a public website.

Keep databases and admin panels private where possible. Check both IPv4 and IPv6 rules if both are enabled. A firewall rule for one protocol does not automatically protect the other.

Protect the application as well

Use a separate database account with only the permissions the app needs. Keep secrets outside public directories and avoid exposing debug pages. Give users individual accounts instead of sharing one administrator password.

Review the logs your software creates and set a retention period that matches your privacy commitments. Check certificate expiry, disk space and backup failures.

Keep recovery practical

Save a configuration backup and recovery instructions outside the server. Confirm how you would restore access after a bad firewall change or failed update.

Before opening the site to visitors, test sign-in, uploads, contact forms and any payment flow over HTTPS. A secure SSH setup does not tell you whether the web application is working.

Common questions

Should I turn on the firewall before allowing SSH?

No. First allow the administration connection you actually use, then test access while keeping the original session open.

Do I need different instructions for each Linux distribution?

Yes. Package management and firewall tools vary. Follow the official documentation for the installed system.

Does no traffic logs configure my application for me?

No. Review the logs created by your own web server, proxy and application.