Join our Newsletter — 33% off our NHI Course
Home› Guides› Securing the jump host and bastion itself: admin…
Guide Privileged Access (PAM)

Securing the jump host and bastion itself: admin roles, keys, sessions, logs and lifecycle

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 14 November 2026 16 min read
On this page

A jump host or bastion is the one place every privileged session passes through, so if it is weak it collects administrator credentials, forwarded keys and live sessions for whoever controls it, and hands them the reach of every administrator at once. Organisations route administration through bastions to get one controlled, audited path into servers, network devices and cloud management planes: SSH jump servers, RDP gateways and terminal servers, browser-based access gateways and managed bastion services. This guide is for infrastructure, platform and privileged access teams who build or run one. It covers what the bastion holds, who may administer it, how users and automation authenticate through it, how to stop credentials and sessions being harvested on it, its logs and recordings, and its lifecycle. How the administrator's own device should be built is in the Privileged Access Workstations Guide, and what to do when a bastion is breached is in If your jump host and bastion is compromised; this page is the preventive design. It is vendor-neutral: confirm exact setting names in your product's or operating system's documentation.

Key takeaways

  • The bastion is tier 0 for everything behind it. Its own administrators, its authentication configuration and its host need protection at least as strong as the most sensitive system it reaches.
  • A bastion is a choke point, not a trust source. NCSC warns that a compromised management device can still reach interfaces through an administration proxy, so the device that connects to the bastion must be trusted too.
  • Nothing reusable should rest on the bastion. No private keys, no forwarded agents, no cached passwords: users authenticate through it to the target, and secrets are issued per session.
  • Targets must refuse direct admin access. NIST SP 800-53 SC-7(15) routes networked privileged access through a dedicated, managed interface; without target-side enforcement the bastion is optional.
  • Logs and recordings must leave the box. An attacker with root on the bastion can edit local logs and recordings, so stream them to storage the bastion's administrators cannot alter.

What the bastion holds and can do

NCSC's guidance on protecting administration interfaces describes administration proxies as a control point that governs who can connect and from where, enforces administration policy and generates activity logs, and asks that they be highly available with break-glass access in case they fail. Those three roles are also what an attacker gains. The component table reflects a common architecture and is NHI Mgmt Group's view; a managed bastion service runs some of these parts for you, but the customer-side settings remain yours.

ComponentWhat it holds or can doIf an attacker controls itPrimary control
Bastion host operating systemRoot or local administrator, session processes, local filesReads memory and files, hijacks live sessions, edits logsMinimal hardened build, separate admin path, immutable rebuilds
Authentication configurationIdentity provider trust, MFA settings, authorised keys or certificate authority trustAdds a key or trusted issuer and returns at willConfiguration as code, root-owned key locations, change alerting
Access policyWhich users reach which targets with which accountsWidens their own reach quietlyPolicy review, two-person approval for scope changes
Target credentials (where injected)Vaulted passwords or keys the bastion injects into sessionsHarvests credentials for use without the bastionPer-session or short-lived credentials, vault checkout logging
Session recordings and logsKeystrokes, screens, commands, file transfersDeletes evidence, reads secrets typed in sessionsOff-host streaming, restricted playback, retention
Network positionRoutes into management networks and device interfacesPivots anywhere the bastion can reachPer-target allow lists, no general forwarding

Bastion administrators and the separate admin path

NCSC's tiering guidance warns against browsing up, administering a higher tier from a lower one. The bastion's own administration is the clearest case: if the bastion can be administered through itself by the people who use it, any user who escalates on it owns it.

  • Separate roles: distinguish bastion platform administrators (host, configuration, authentication trust), policy owners (who may reach which targets), auditors (read logs and recordings) and users. Users of the bastion should hold no rights on the bastion host itself.
  • Separate path: administer the bastion from privileged access workstations over a dedicated management interface, not by jumping through the bastion to itself. Keep the number of bastion administrators small and bounded, as NCSC advises for administrators generally.
  • Configuration as code: hold the host build, access policy and authentication settings in a repository, apply changes through a pipeline with review, and alert when the running configuration drifts from it.
  • Break-glass route: NCSC asks for backup break-glass access so a proxy failure does not lock administrators out, protected by a very long password and alarmed on every use. Keep one documented route that bypasses the bastion and test it. See the Break-Glass Account Guide.
  • Just-in-time rights: grant bastion administrator rights for a time-boxed window against a change, not standing. See the JIT Access Guide.

Authentication through the bastion

NCSC asks that MFA be enabled on administrator accounts where available, and also notes its limit: an attacker who controls the privileged access workstation can ride a session after MFA completes. Combine MFA at the bastion with trusted devices.

PatternHow it worksStrengthsWatch for
Identity provider sign-in with phishing-resistant MFA, then short-lived target credentialUser authenticates to the bastion via SSO; bastion or a certificate authority issues a credential valid for minutes or hoursNo standing keys, central revocation, clean joiner and leaver handlingThe issuing authority becomes tier 0 itself; protect its signing keys
Short-lived SSH user certificatesA certificate authority signs the user's key with a short validity and named principalsTargets trust one issuer instead of many keysValidity windows set too long; see the SSH Protocol and Certificate Authority Guide
Vaulted credential injectionThe bastion checks out a target password or key from a vault and injects it; the user never sees itWorks with targets that only accept passwordsThe bastion holds injectable secrets; rotate after each checkout where the target allows
Static personal SSH keysUser's public key in authorised keys files on the bastion and targetsSimple, no extra infrastructureKeys outlive staff and spread; NIST IR 7966 finds unused and orphan keys are common
  • Device trust: NCSC recommends permitting only authorised devices for administration. Require device certificates or compliance checks at the bastion, so a stolen password from an unmanaged laptop is not enough. See the Identity-Aware Proxy Guide for browser-based patterns.
  • Named accounts: every person signs in as themselves. Shared accounts on the bastion break attribution, and NIST IR 7966 asks that private keys on shared jump server accounts be rotated whenever someone's access ends, which is rarely done in practice.
  • Session limits: set idle and maximum session timeouts (NIST SP 800-53 AC-12 Session Termination) so abandoned sessions cannot be picked up later.

Keys, agents and forwarding

The most common way bastions leak credentials is that users bring them along. NIST IR 7966, Security of Interactive and Automated Access Management Using Secure Shell, gives the key controls that matter most here.

  • No private keys on the bastion: users keep keys on their workstation or hardware token and use the SSH client's jump option, which connects through the bastion and forwards only the TCP connection to the target. The bastion never sees the key. See Security Keys for SSH.
  • Agent forwarding off: common SSH client documentation warns that users who can bypass file permissions on the remote host can use a forwarded agent to authenticate with the loaded identities, even though they cannot read the key itself. Disable agent forwarding on the bastion for all users. This is ATT&CK T1563.001 SSH Hijacking territory.
  • Root-owned authorised keys: NIST IR 7966 recommends moving authorised keys to superuser-owned locations not writable by ordinary users, and configuring servers to read keys only from there. That stops a user or attacker adding a persistent key (T1098.004 SSH Authorized Keys).
  • Restrict forwarding: NIST IR 7966 lists disabling port forwarding as part of SSH hardening, and gives the example of a key meant for file transfer being used to tunnel traffic past network controls. On the bastion, allow forwarding only to listed target addresses and ports, and disable remote forwarding, X11 and tunnelling unless a documented need exists. See the OpenSSH Server Hardening Guide.
  • RDP credential exposure: on RDP gateways and terminal servers, use modes that do not leave reusable credentials on the intermediate host and do not store saved credentials there. See the Remote Desktop (RDP) Security Guide.

Automation and service accounts through the bastion

Scripts, configuration management, backup jobs and CI pipelines often reach production through the same bastion as people, usually with long-lived keys. NIST IR 7966 recommends command restrictions on keys used by automated processes unless specially approved, source restrictions so a stolen key cannot be used from elsewhere, and logging of key fingerprints for every key-based login.

Automation identityNeedsPatternAvoid
Configuration managementRun changes on defined host groupsShort-lived certificate issued to the runner workload, principals limited to its host groupsA personal administrator's key copied to the runner
File transfer jobWrite to one directory on one hostKey with forced command and source address restrictionInteractive shell rights
Backup or monitoring agentRead defined data or metricsDedicated account per function, read-only, no forwardingRoot or local administrator over the bastion
CI or deployment pipelineDeploy to defined targetsFederated workload identity exchanged for a short-lived credentialStatic private key stored as a pipeline variable

Record each automation identity with an owner, purpose, allowed targets and expiry, and remove keys unused for a long period: NIST IR 7966 suggests monitoring for six to twelve months to confirm which keys are active before removing unapproved unused ones. See the SSH Key Management Guide and the Service Account Security Guide.

Enforcing the bastion at the target

A bastion only works if administration cannot go around it. NIST SP 800-53 Rev. 5 SC-7(15) calls for routing networked privileged accesses through a dedicated, managed interface for access control and auditing, and AC-17(3) for routing remote access through managed access control points.

  1. Inventory admin paths: list every management protocol and port on every target (SSH, RDP, WinRM, device management interfaces, hypervisor and cloud consoles) and who reaches them today.
  2. Monitor first: log administrative connections that do not originate from the bastion for two to four weeks (our suggestion), and fix the workflows that depend on direct access.
  3. Restrict in rings: apply host firewall and network rules so management ports accept only the bastion's addresses, starting with a pilot group, then non-production, then production.
  4. Restrict at the identity layer too: limit where privileged accounts may sign in from, so a stolen credential fails outside the bastion path.
  5. Roll back safely: keep the previous rule set ready and the break-glass route tested before each ring, so a lockout is fixed in minutes.

Rules based on source addresses alone have limits: NCSC notes IP allow lists can be defeated by spoofing or shared address space and are hard to maintain, so combine them with authentication at the target.

Logs, session recording and the bastion's own audit trail

NCSC asks you to record who carried out an action, when and from where, and what it did, and gives the example rule that tier 0 accounts should not be used to sign in routinely. NIST SP 800-53 AU-14 covers session audit and asks that it be developed in consultation with legal counsel, so involve HR and legal before recording keystrokes or screens.

EventWhy it mattersAlert?
Change to authentication trust (new key, new certificate authority, MFA setting)Persistence on the bastionAlways
Access policy widened or new target addedQuiet expansion of reachAlways, with approver
Login to the bastion host itself (not a pass-through session)Host administration or escalationAlways outside a change
Session start and end with user, source, target and accountAttribution for every privileged sessionFor tier 0 targets and unusual sources
Recording or log forwarding stopped, local logs truncatedBlinding before or during an attack (T1685)Always, through a channel independent of the bastion
Recording playback or exportRecordings can contain typed secrets and personal dataFor bulk export
  • Stream off-host: send logs and recordings in near real time to storage under a different administrative account (AU-9(2)), so a root compromise cannot rewrite history.
  • Protect recordings: restrict playback to auditors and investigators, log every playback, and set retention in your logging policy.
  • Test monitoring: NCSC suggests red and blue team exercises against administration interfaces; include the bastion and its bypass routes.

Hardening, resilience and lifecycle

StageSecurity actions
DesignOne bastion tier per administrative tier, so a tier 2 bastion never reaches tier 0 systems; place it in a dedicated management segment; plan high availability and the break-glass route. See the Tiered Administration and Enterprise Access Model Guide.
BuildMinimal operating system with only the access software and logging agents; no development tools, browsers or email; current CIS Benchmark or equivalent baseline; full-disk encryption; host keys generated per instance and published to clients.
RunApply security updates promptly, as NCSC advises; rebuild from the golden image on a schedule rather than patching in place where you can; review users, policy and keys quarterly (our suggestion).
Back upBack up configuration and policy, not user data or keys; keep the image and configuration repository protected so a clean rebuild is always possible.
RetireRemove the bastion's addresses from every target allow list, revoke its host keys and any certificate authority trust it held, delete vault checkout rights, and keep logs and recordings for their retention period.

Choosing controls by size

  • Small organisations: NCSC's small company example puts an SSH-managed web server behind an MFA-protected proxy, alarms every access and locks administrator certificates to their workstations. A single hardened bastion with SSO, short-lived certificates and target firewall rules is a realistic baseline.
  • Mid-sized estates: add separate bastions for production and non-production, vaulted credential injection for password-only targets, and off-host session recording for tier 0 and tier 1 targets.
  • Large or regulated organisations: one bastion tier per administrative tier, privileged access workstations as the only allowed clients, just-in-time target access through a PAM platform, and the bastion in red team scope. See the Privileged Access Management Guide.

Detection and measurement

  • Bypass attempts: administrative logins on targets that did not come from the bastion (T1021.004 SSH, T1021.001 Remote Desktop Protocol).
  • Key persistence: new entries in authorised keys files or new trusted issuers on the bastion or targets (T1098.004 SSH Authorized Keys).
  • Credential reuse: a bastion user's credential used from another source (T1078 Valid Accounts), and private key files appearing on the bastion (T1552.004 Private Keys).

Metrics that show the controls are working:

  1. Percentage of administrative logins on in-scope targets that came through the bastion (target: 100% outside break-glass).
  2. Number of standing personal SSH keys authorised on the bastion and targets, trending down as certificates replace them.
  3. Percentage of tier 0 and tier 1 sessions with an off-host recording or log.
  4. Number of bastion host administrators (target: a small bounded number) and the share holding the role just in time.
  5. Days since the last break-glass route test and the last rebuild from the golden image.

Framework mapping

Control areaNIST SP 800-53 Rev. 5NIST CSF 2.0ATT&CK threat addressed
Bastion as the managed pathSC-7(15), AC-17(3), AC-17(4)PR.IR-01T1021.004 SSH, T1021.001 Remote Desktop Protocol
Administrator roles and MFAAC-2, AC-6(5), IA-2(1)PR.AA-05T1078 Valid Accounts
Keys and certificatesIA-5, SC-12PR.AA-01T1098.004 SSH Authorized Keys, T1552.004 Private Keys
Session controlAC-12, AU-14PR.AA-05T1563.001 SSH Hijacking
Logs and recordingsAC-6(9), AU-9(2), AU-11PR.PS-04T1685 Disable or Modify Tools
Minimal build and change controlCM-3, CM-7PR.PS-01T1078 Valid Accounts

Common failure patterns

  • Bastion as a key store: users copy private keys onto the bastion to reach the next hop, so one host holds the keys to the estate.
  • Agent forwarding left on: anyone with root on the bastion can use every connected administrator's loaded keys while they are logged in.
  • Bypass still open: targets accept SSH or RDP from the whole internal network, so the bastion records only the administrators who chose to use it.
  • Bastion users are bastion admins: broad sudo or local administrator rights on the bastion for convenience turn any user escalation into full control.
  • Logs only on the box: session logs and recordings stored locally are the first thing an attacker with root deletes.
  • Shared automation key: one unrestricted key used by every script, never rotated, with no source or command restriction.

Practitioner checklist

  • Classify each bastion at the tier of the most sensitive system it reaches, and keep one bastion tier per administrative tier.
  • Administer the bastion over a separate path from privileged access workstations, with configuration as code.
  • Require SSO with phishing-resistant MFA and trusted devices for every user.
  • Replace static personal keys with short-lived certificates or per-session credentials.
  • Disable agent forwarding, general port forwarding and private key storage on the bastion.
  • Restrict automation keys by command and source, and log key fingerprints for every login.
  • Close direct administrative access on targets so only the bastion can reach management ports.
  • Stream logs and recordings off-host to storage the bastion administrators cannot alter.
  • Keep and test a break-glass route that bypasses the bastion and alarms on use.
  • Rebuild from a hardened image on a schedule and revoke all trust when a bastion is retired.

Standards and references

Related NHI Mgmt Group resources: If your jump host and bastion is compromised · Privileged Access Workstations Guide · Securing the PAM Vault Itself · Secure Remote Access Beyond VPN Guide · SSH Key Management Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.