Skip to main content

SSH port forwarder daemon

Daemon

Install forwarderd[daemon] and run forwarderd.__main__ any suitable way

Example for Linux, will create systemd service "forwarderd":

mkdir forwarderd
cd forwarderd
python3 -m venv .  # python version should be 3.7 or higher
source bin/activate
python3 -m pip install pip --upgrade
python3 -m pip install pip forwarderd[daemon]
python3 -m forwarderd --systemd-install
systemctl start forwarderd

Usage

Install forwarderd, then request tunnel spawn such way

from forwarderd import spawn_tunnel, SpawnTunnelRequest

spawn_resp = await spawn_tunnel(
    SpawnTunnelRequest(
        ssh_addr='hostname:port',  # port is optional, 22 by default
        ssh_user='user',
        ssh_identity_file='/root/.ssh/forward_key',  # must be accessible for daemon
        remote_addr='localhost:80',
    )
)
spawn_resp.host  # local bind host
spawn_resp.port  # local bind port

Download files

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

Source Distribution

forwarderd-8.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file forwarderd-8.tar.gz.

File metadata

  • Download URL: forwarderd-8.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/60.5.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.10

File hashes

Hashes for forwarderd-8.tar.gz
Algorithm Hash digest
SHA256 22b19ecabf504aed30a3f323c4377f3379323a0f2d7311ff0043a08bc90e9a06
MD5 34a1338a5ea06bd2303d9beeeb75f946
BLAKE2b-256 99fb7fb67e6a6ae259fcadde67a2b08af22157cb9eda5628ec1e467cca3be741

See more details on using hashes here.

Release history Release notifications | RSS feed

13

2 files

12

2 files

11

2 files

10

2 files

9

2 files

This release

8 This release

1 file

7

2 files

6

2 files

5

2 files

4

2 files

3

2 files

2

2 files

1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page