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 .
source bin/activate
python3 install forwarderd[daemon]
python3 -m forwarderd --systemd-install
systemctl start forwarderd

Usage

Install forwarderd, then request spawn tunnel such way

from forwarderd import spawn_tunnel, SpawnTunnelRequest

spawn_resp = await spawn_tunnel(
    SpawnTunnelRequest(
        ssh_addr='localhost:6969',
        ssh_user='user',
        ssh_identity_file='/root/.ssh/forward_key',  # must be accessible for daemon
        remote_addr='localhost:6969',
    )
)

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-1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

forwarderd-1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: forwarderd-1.tar.gz
  • Upload date:
  • Size: 3.9 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-1.tar.gz
Algorithm Hash digest
SHA256 20231c146d575cf1ed3715bf6e99e0b0d395c0bdaf4c731a8b1491dd3fd15ce8
MD5 7e18c2f1efac5afb2506a61cb3335162
BLAKE2b-256 486be9c5c01366282f9b9c47d4b17cad8644cfb7d4fc1cfe5e4cdb5fa8fed3c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: forwarderd-1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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-1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f4c9c30507dfbb9a0a2dc414d745d347bed2658a9084a2d7924ef2a83b906cb
MD5 6b3ec38e55c8df1b98a268f02c4853f6
BLAKE2b-256 cd3bafe992670f717ecd95c136d495847de1566d85daadad86d22cb2bf9e7c90

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