Join our Newsletter — 33% off our NHI Course
Architecture & Implementation

Reverse SSH

← Back to Glossary
By NHI Mgmt Group Updated October 29, 2026 Domain: Architecture & Implementation

Reverse SSH is an SSH connection initiated from an internal host out to another system so that traffic can be carried back through the established session. It is used to reach a machine behind NAT or a firewall, or to expose a local port remotely, without opening an inbound SSH listener on the target.

How Reverse SSH Works

Reverse SSH flips the usual access pattern. Instead of an administrator opening an inbound SSH session to the target, the internal host makes an outbound SSH connection and holds that channel open so remote traffic can be relayed back through it.

This matters because it lets operators reach systems that sit behind NAT, strict firewalls, or segmented networks without exposing a new inbound listener on the protected host. The remote endpoint becomes the connection broker, while the internal machine initiates the transport and keeps the session alive.

Why Reverse SSH Is Used

Reverse SSH is commonly used for remote support, break-glass access, and temporary connectivity into a private host when direct inbound management is not practical. It can also be used to expose a local service, such as a database port or admin console, to a remote operator through the existing SSH tunnel.

That utility is also what makes the pattern powerful: the access path is created through normal outbound connectivity, which is often easier to permit than inbound administrative access. In practice, reverse SSH is a tunnelling and reachability mechanism, not a replacement for access control, and it should be treated as a privileged path with the same scrutiny as any other remote administration route.

Security Implications of Port Forwarding and Tunnels

Because reverse SSH can carry arbitrary forwarded traffic, the security question is not just whether SSH is encrypted, but what the tunnel is allowed to reach once it exists. If an operator or compromised endpoint can create a reverse tunnel, that path can bypass firewall intent, network segmentation, and normal monitoring if it is not explicitly governed.

The strongest control point is the underlying SSH trust model, including key handling, command restrictions, and tunnel permissions. NHIMG’s SSH Key and SSH Certificate Management Guide is relevant here because reverse SSH often depends on long-lived keys or certificates that determine who can establish and reuse the tunnel.

Operational Fit and Safe Usage

Reverse SSH is best understood as a controlled workaround for constrained reachability, not as a default connectivity design. It is most appropriate when the business need is narrow, time-bound, and tied to a clear owner, such as a support task or a temporary maintenance window.

Because the tunnel is outbound from the protected host, teams should treat session establishment, destination control, and tunnel duration as operational decisions. The practical discipline is to keep the allowed path as narrow as possible, make the access temporary, and ensure the session can be terminated quickly when the need ends.

Risk and Threat Considerations

Reverse SSH can become an abuse path if an attacker gains the ability to originate the outbound connection or reuse the credentials behind it. A tunnel that was meant to solve reachability can also provide covert remote access, enable lateral movement, or preserve persistence while appearing like ordinary SSH traffic.

Failure mechanism: The defence assumption fails when an outbound-initiated tunnel is treated as benign, even though it can create an always-available channel back into a segmented or otherwise protected environment.

Impact: Unauthorised tunnel creation can expose internal services, bypass perimeter controls, and extend the blast radius of a compromised host or stolen SSH material.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementReverse SSH relies on SSH keys or certificates that must be issued, rotated, and revoked securely.
AC-17 — Remote AccessReverse SSH is a remote access channel that should be approved, monitored, and constrained.
SC-7 — Boundary ProtectionThe tunnel can bypass normal network boundaries and must be controlled as a boundary-crossing path.
Recommendation — Manage SSH credentials with rotation, revocation, and expiry so reverse tunnels cannot outlive their approval. Restrict reverse SSH to approved remote access cases and log each session and destination. Limit which internal services may be reached through reverse tunnels and enforce network boundary policy.
CIS Controls v8CIS-6 — Access Control ManagementReverse SSH creates privileged access paths that need explicit authorization and review.
Recommendation — Authorize, review, and revoke reverse SSH access paths as part of access control management.
MITRE ATT&CKT1021.004 — Remote Services: SSHReverse SSH is an SSH-based remote service path that can support intrusion and lateral access.
Recommendation — Hunt for unexpected SSH-based remote service activity and investigate unusual tunnel use.

Practitioner Guidance

Why practitioners should care: Reverse SSH is a legitimate administration technique, but it creates a remote access path that should be governed with the same discipline as privileged connectivity. The main oversight risk is allowing a convenient tunnel to become an undocumented standing access route.

What to watch for: Review who can establish the reverse session, what remote port is exposed, how long the tunnel remains active, and whether the access is still needed after the original task is complete.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org