# pahaz/sshtunnel

SSH tunnels to remote server.

Repository: https://github.com/pahaz/sshtunnel
Canonical: https://ross.abutalabs.com/products/sshtunnel
Language: Python
License: MIT
License Family: permissive
Topics: python, tunnel, ssh
Last push: 2025-08-27T14:29:08+00:00

## Health v2 (maintenance only)
Score: 40/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 39, release rhythm 8, longevity 100
- inputs: {"age_days": 4466, "days_push": 371, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1295, forks 202 (observed 2026-08-28T04:04:16.442150+00:00)

## What it is
A pure Python library for creating SSH tunnels and TCP port forwarding through remote servers, built on paramiko. It lets applications programmatically open forwarded ports to services behind firewalls or on private networks.

## Use cases
- connect to a database port only reachable via SSH
- forward a remote web service port through an SSH server
- reach a private server behind a firewall from a local client
- open SSH tunnels programmatically in Python tests
- create SSH port forwards on Windows without OpenSSH

## When to choose
- you need SSH tunneling from Python code without external ssh binaries
- you need cross-platform support including Windows
- you want a simple context-manager API for opening and closing tunnels

## When to avoid
- you just need a one-off tunnel from the command line (use OpenSSH's -L flag)
- you need high-throughput or production-grade tunneling performance
- you need SOCKS proxying rather than port forwarding

## Facets
- artifact type: library
- maturity: stable
- function: networking, security, proxy
- domain: networking, security, developer-tools, backend
- platform: python, cross-platform
- tags: ssh-tunnel, port-forwarding, paramiko, tcp-forwarding

## Member repositories
- pahaz/sshtunnel (main) score 40

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.442150+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:54:01.934785+00:00, confidence not recorded.
  - readme: https://github.com/pahaz/sshtunnel (fetched 2026-08-28T04:04:16.442150+00:00, sha 93d2b1171aae)
  - registry_pypi: https://pypi.org/pypi/sshtunnel/json (fetched 2026-08-29T12:10:38.157100+00:00, sha f09f8ac82112)
- Data as of 2026-08-30T08:39:29.467469+00:00.
