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 -m pip install 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='server.ip.addr: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: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-3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

forwarderd-3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: forwarderd-3.tar.gz
  • Upload date:
  • Size: 4.5 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-3.tar.gz
Algorithm Hash digest
SHA256 b8b96aae9d3ea3e55eb37d897b120c0ec338aeb305aa7bda3c686ff3ef1a31e7
MD5 e1d85b2e459d7b984c2a11da3c2e3640
BLAKE2b-256 c60de747f27ac64e99784e7aa00325a9f3a38311facbad74c0ad75e646793378

See more details on using hashes here.

File details

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

File metadata

  • Download URL: forwarderd-3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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-3-py3-none-any.whl
Algorithm Hash digest
SHA256 305a109f3dbf755b089686e6776246c05902478fd7d9a117a8f9ffa34d8c664b
MD5 9e04a359dd5a99541d5e91cb69659f34
BLAKE2b-256 ad3bb5d64908344c0badbd9d0b6153411aaa27ea333aa3ad507204541a8c51c7

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