Skip to main content

SSH Forward Daemon

Project description

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

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

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

Uploaded Source

Built Distribution

forwarderd-7-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: forwarderd-7.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-7.tar.gz
Algorithm Hash digest
SHA256 cd3449e9a9d940aefd6dba9dc010b85d77d23c502ef16036cfd6485055e374f3
MD5 d04a9a50810d35d8f562381d1c5e7f8d
BLAKE2b-256 f5a6f712ee890d858e903ff2ea55c1b45200baf403f99ee3694a7e81c79add12

See more details on using hashes here.

File details

Details for the file forwarderd-7-py3-none-any.whl.

File metadata

  • Download URL: forwarderd-7-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • 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-7-py3-none-any.whl
Algorithm Hash digest
SHA256 255a66a1bf7fba9aad4814eb25ae6228da1d3603fe3d8ebf18a0f85c3e560a9f
MD5 0178466bd3ca37b8bec929955cc0d74f
BLAKE2b-256 11bf726d7b5a923fc3062159b9f6a4a8f3977a3a752637f6cc7654c4666eec76

See more details on using hashes here.

Supported by

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