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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
forwarderd-9.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file forwarderd-9.tar.gz
.
File metadata
- Download URL: forwarderd-9.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a14103cce4df3819a789f5763c319ef5b7d752a287074d2f5ae055f96beb97c8 |
|
MD5 | 556c043690d3ec0cb9cb1a2dc54246ba |
|
BLAKE2b-256 | 7c122afbd26517bb18252d106140aa6af61647510ecd7e3846f73784cd90b674 |
File details
Details for the file forwarderd-9-py3-none-any.whl
.
File metadata
- Download URL: forwarderd-9-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ec285e96f833f8de4ccab825314ce5c9013e260973cb7496b15db22d0d000b |
|
MD5 | 1fd33c6aefa4855e9e5a9a96eb9e442c |
|
BLAKE2b-256 | b178cf1fc6e961419020a468298211bf235de17221e61d3a9e04681427bfb938 |