Deployment guide

Bastion Host on VPS: securing your SSH access

Deploy on a VPS Cloud →

Security & Monitoring7 min read

Bastion Host on VPS: securing your SSH access

An SSH bastion avoids exposing each server directly on the Internet: administrators go through a hardened, logged and easy-to-audit entry point. On a ServOrbit VPS, this role stays clear: a stable IP, OpenSSH, named keys and minimal firewall rules. This guide presents a lean setup, useful for a small team as well as for an agency administering several machines.

Why go through an SSH bastion?

A bastion reduces the attack surface: instead of opening SSH on each server, you concentrate access on a dedicated machine. Keys, users and logs are simpler to control, and internal servers can stay closed to the public network.

What this template brings

  • A single entry point for administrator SSH access.
  • Named keys rather than a shared password.
  • A simple foundation for logging connections and sensitive commands.
  • Reduced network exposure for the application servers behind the bastion.
  • A foundation compatible with the classic tools: OpenSSH, ProxyJump, UFW and Fail2Ban.

Requirements before opening it to the team

Plan for a lightweight but isolated VPS, a clear list of authorized people, individual SSH keys and a firewall rule that opens only the necessary SSH port. For a distributed team, also document the username format and the revocation procedure.

Deploy a bastion properly

01

Create the dedicated VPS

Select the Bastion Host template in the ServOrbit Marketplace or start from a minimal Ubuntu. Keep this server dedicated to SSH access: no website, no database, no ancillary services.

02

Set up the named keys

Add one key per administrator in ~/.ssh/authorized_keys. Avoid shared accounts: in case of a departure or rotation, you must be able to remove a single key without blocking the whole team.

03

Harden OpenSSH

Disable password authentication, block direct root login and limit authorized users with AllowUsers or AllowGroups in sshd_config.

04

Configure ProxyJump

On administrator workstations, add a ProxyJump entry in ~/.ssh/config. Internal servers remain accessible over SSH through the bastion, with no public port open.

05

Monitor and revoke

Enable Fail2Ban if the SSH port remains exposed and regularly check /var/log/auth.log. Immediately remove keys that are no longer used.

ServOrbit tip

Keep the bastion small, predictable and separate from the rest. Its value comes from its simplicity: the fewer services it hosts, the easier it is to audit.

The official documentation

For advanced configuration, options specific to the tool, and version changes, refer to the official OpenSSH documentation. This guide covers deployment on a ServOrbit VPS; the vendor's documentation remains the reference for fine-tuning.

Centralize your SSH access on a ServOrbit VPS

The Bastion Host template gives you a clear entry point to administer your servers without exposing each machine directly on the Internet.

Need help?

Browse our help center and FAQ, or write to our team — support in French, English and Arabic.