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
If local_addr
not specified, host is localhost and
paramiko will decide which port to use
There is also Go client
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-13.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file forwarderd-13.tar.gz
.
File metadata
- Download URL: forwarderd-13.tar.gz
- Upload date:
- Size: 6.2 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 | 8e3b0549ac6e901aa08c917f4de3b3c955a926ce2fdf4066070ef66f277ac348 |
|
MD5 | db51cffe334381ff553bccce6de40cdd |
|
BLAKE2b-256 | 3623a4ae4cd217450a16f96c66d80e5cb8e97ad8bbcd076584776d621c455436 |
File details
Details for the file forwarderd-13-py3-none-any.whl
.
File metadata
- Download URL: forwarderd-13-py3-none-any.whl
- Upload date:
- Size: 6.4 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 | a03c11daf1be8de6f01d0d4b49b5560f73742ea3140d167164a8e36da95937a5 |
|
MD5 | 509b423371601cae51d46d9b1a5beae8 |
|
BLAKE2b-256 | 6bc451189e42dd8581e38033bf6d58d8d4b0582cd9b9b90007548dac4a2145d3 |