What it is
A bastion host is a single, hardened server that acts as the only front door to your private systems. Your databases, application servers and internal tools sit on a network that the internet can't reach. When an engineer needs to log in to one of them, they go through the bastion host first.
The name comes from the fortified projection on a castle wall. The idea is the same: one defended point where you concentrate your attention, instead of defending a hundred doors. The bastion host runs very little software, has a short list of authorized users and is watched closely.
It's worth separating it from a few things it gets confused with. A VPN gives a person a network connection into your private space. A firewall filters traffic by rules. A bastion host is a stepping stone: a machine you connect to, and then from it, to the next machine. Some teams use it alongside a VPN, some instead of one.
How it works
The bastion host sits in a public-facing part of your network, often called a public subnet. It has one job: accept administrative connections, usually SSH for Linux servers or RDP for Windows, and pass them along. Your private servers are set to accept admin connections only from the bastion host's address, nothing else.
In practice, an engineer connects to the bastion host and authenticates. Then they either open a second session from there to the target server, or use a feature that tunnels through it, such as SSH jump host settings (the ProxyJump option) so the hop happens in one command. The private server sees the connection coming from the bastion host, and that's the only source it trusts.
The security comes from what you lock down around it. Inbound access to the bastion host is limited to known source addresses where you can. Password logins are turned off in favor of keys or short-lived credentials. Every session is logged, ideally to a place the bastion host itself can't edit, so a compromised box can't erase its own tracks. Cloud providers also offer managed versions of this idea, where the provider runs the hop and you skip patching a server yourself. Session-manager style tools go a step further and need no open inbound port at all.
Why it matters for a business
The main benefit is a smaller attack surface. Without a bastion host, teams often end up with admin ports open on many servers, each one a separate target for password guessing and scanning. With one, you expose a single machine and keep everything else private.
It also gives you a clean audit trail. When a customer, an auditor or your own leadership asks who touched the production database last Tuesday, the bastion host's logs are where you look. One chokepoint means one place to record access, and one place to cut it off the day someone leaves the company.
Finally, it supports a sensible habit: production is hard to reach by default. That limits the damage from a stolen laptop or a leaked key, because the stolen credential still has to get through a monitored gate. Customer security questionnaires often ask how staff reach production, and a documented bastion host or managed equivalent is an answer that holds up.
Common mistakes
The most common one is leaving the bastion host open to the whole internet on the admin port. It's the front door, so it will be scanned constantly. Restrict the source addresses, or put it behind a managed access service so no inbound port is exposed.
The second is letting it turn into a general-purpose server. Someone installs tools, stores files or runs a quick job on it, and the hardened box gets heavier and harder to trust. Keep it minimal. Patch it on a schedule, and rebuild it from a template rather than nursing one machine for years.
The third is weak identity handling. Shared accounts, shared keys and long-lived keys copied between laptops erase the audit trail you built the bastion host to provide. Give each person their own identity, require multi-factor authentication, and remove access when roles change. Related to this, many teams forget to ship the logs anywhere. A log that lives only on the bastion host is lost if the host is.
Last, people forget the back side. If your private servers still accept admin connections from anywhere inside the network, an attacker who lands on any machine can reach them. The private servers should accept admin traffic from the bastion host only.
How to get started
Start by listing how people reach your servers today. Note every open admin port, every shared key and every VPN. That inventory usually shows where the real risk sits.
Next, decide between a self-managed bastion host and a managed option from your cloud provider. If you have a small team and no appetite for patching another server, the managed route is usually less work. If you need custom tooling or run across several environments, a self-managed host gives you control, along with the upkeep.
Then make the changes in order. Move your private servers so they accept admin connections only from the bastion host. Turn on session logging and send it to separate storage. Replace shared credentials with individual ones plus multi-factor authentication. Close the old open ports last, once you've confirmed everyone can still get in.
If you'd like an outside check before an audit or a customer review, Cloudverg offers a Cloud security review at $6,500/month, which renews monthly until cancelled. It's a fixed-scope, read-only look at up to five cloud accounts that covers access, public exposure, network settings and logging, with a ranked fix list. It's one option among several, alongside doing the review in-house.
Frequently asked questions
What is the difference between a bastion host and a VPN?
A VPN connects a person's device to your private network, so they can reach many systems directly. A bastion host is one server you log in to, and you reach other systems only by hopping through it. Some companies use both, and the bastion host adds a single, easily logged checkpoint.
Do I still need a bastion host if I use the cloud?
Often yes, or a managed equivalent. Cloud servers in private networks still need a safe way for admins to reach them. Cloud providers offer managed services that do the same job without you running a server, which many small teams prefer.
Is a bastion host the same as a jump box?
Yes, in most conversations the two terms mean the same thing. Both describe a hardened server you connect to first in order to reach private systems behind it. Jump host and jump server are also common names.