SSH-Tunnels maker aka tunneller
Utility to manage SSH-Tunnel to CINECA clusters.
An SSH tunnel is a secure method for forwarding network traffic between two devices over an encrypted connection.
It uses the SSH protocol to create a secure "tunnel" through which data can be securely transmitted.
Install
tunneller can be installed with pip by running:
pip install tunneller
You can also install it from source:
git clone https://github.com/so07/tunneller.git
cd tunneller
python setup.py install
Usage
tunneller can be run either on your local machine or on a CINECA cluster.
- When you run on a CINECA cluster, the instructions you have to execute on your local machine are printed out on the screen.
Thus you have to copy and paste the instructions on a shell of your local machine. - While when you run it on your local machine, the SSH tunnel is opened.
Examples of Usage
- To open an SSH-Tunel to Leonardo cluster login node with the default options:
tunneller -c leonardo
NB1: the $USER environment variable is used to setup the username
NB2: This is the same of running: ssh -L 9999:localhost:9999 $USER@login01-ext.leonardo.cineca.it -N
- To open an SSH-Tunnel to the Leonardo cluster login using a different username:
tunneller -u USERNAME -c leonardo
This is the same of running: ssh -L 9999:localhost:9999 USERNAME@login01-ext.leonardo.cineca.it -N
- To open a double SSH-Tunnel to the Leonardo compute node
lrdn2655on the port 9998 passing throughlogin02
tunneller -c leonardo -p 9998 -n lrdn2655
This is the same of: ssh -L 9998:localhost:9998 $USER@login02-ext.leonardo.cineca.it ssh -L 9998:localhost:9998 lrdn2655 -N
- To list all processes IDs that have network connections on port 9999 on Leonardo login node:
tunneller -c leonardo -p 9999 --port-list
This is the same of running lsof -ti:9999 on the login node of Leonardo cluster or running ssh $USER@login01-ext.leonardo.cineca.it lsof -ti:9999 on your local machine.
- To kill all processes that have network connections on port 9998 on Leonardo cluster
login02:
tunneller -c leonardo -p 9998 -l 2 --port-clean
This is the same of running lsof -ti:9999 | xarg kill -9 on the login node of Leonardo cluster.
Metadata
Release files for tunneller 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tunneller-0.1.6.tar.gz | 4.7 kB | Without provenance | Details |
Release files / tunneller-0.1.6.tar.gz
| Download URL | tunneller-0.1.6.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c669403ebb12d99a6aa170db97ae7fb62bc4617939cb730535219ac3daeb38e
|
|
BLAKE2b-256 checksum How to use checksums |
7663a7c96c04162c229df0f06939943022d080751ead32b3235150ec55219015
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
|
Security for tunneller 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.