Skip to main content

TUI for managing SSH port forwarding

Project description

portforwarder

TUI for managing SSH port forwarding tunnels, built with Textual.

Install

uv tool install .

Dev Run (no install)

uv run python -m portforwarder

Usage

portforwarder

Keybindings

Key Action
Space / Enter Toggle selected tunnel on/off
a Add new tunnel
e Edit selected tunnel
d Delete selected tunnel
q Quit

Configuration

All tunnels are saved to ~/.port-forward/config.json. Each entry has:

  • Name — display label
  • Local Port — port on your machine
  • Remote Host — SSH destination (user@host)
  • Target Host — host to reach from the remote side
  • Remote Port — port on the target host

The SSH command run is:

ssh -N -L <local_port>:<target_host>:<remote_port> <remote_host>

Port Collision

Turning on a tunnel with the same local port as an active one will auto-stop the old tunnel and start the new one. All tunnels are stopped when the TUI closes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

portforwarder-1.0.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

portforwarder-1.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file portforwarder-1.0.0.tar.gz.

File metadata

  • Download URL: portforwarder-1.0.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for portforwarder-1.0.0.tar.gz
Algorithm Hash digest
SHA256 86275d817696cdb35a2a8ed5f1089b1880d6892f384ec0b11643e1df7c019db3
MD5 6e7f1171dfc1f4cbdf02a78e04776869
BLAKE2b-256 d447064278b690b9bd4fdd71053927e065754e8de1c65dcd2ee2dd38f25bf91e

See more details on using hashes here.

File details

Details for the file portforwarder-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: portforwarder-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for portforwarder-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc76e62e2a16cfa9f78ff59de5b55e58964f62865bc31fca93a84faf3cb7653c
MD5 0275faf181159001c52794ffdc56bffd
BLAKE2b-256 392382f81369a59f86cbc111a6158737dcb93cdea3f09c864aff2b210fd706e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page