Skip to main content

st: The SuperTunnel

GithubActions PyPi

st is a supercharged SSH tunnel manager, useful for managing SSH connections that you want to be long lived.

To forward port 8888 from host.example.com:

$ st forward -p 8888 host.example.com
Forwarding ports:
1) local:8888 -> remote:8888
^C to exit
[connected] 0:00:00 |

The tunnel will be kept alive, both by ssh and by supertunnel. If you lose your network connection for a while, or if you suddenly get cut off, supertunnel works with ssh to notice the connection failure, and seamlessly restarts the tunneling process.

That just scratches the surface of what supertunnel can do though.

Why supertunnel?

I wrote this script when I used to ride a train through a tunnel every day, and it would interrupt my connection to a Jupyter notebook on a remote server, but it is useful for a lot more – think about any time your SSH connection drops, and you have to go find that terminal window and start it up again. Now think about never doing that again. That’s what st provides.

st is designed to be fairly flexible (my needs have evolved over time) but still simple enough that someone who doesn’t want to understand the intricacies of SSH tunneling could use it.

It is written in Python 3, and relies on the command line tool library click, but just running pip install supertunnel should get you the st command.

Why not just use ssh?

This tool restarts your SSH connection when it goes away. But really, you could probably do this all some other way, and thats fine! Go for it! If your way is really awesome, open an issue and let me know about it.

Metadata

Release files for supertunnel 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for supertunnel 0.1
File Size Uploaded Provenance Actions
supertunnel-0.1.tar.gz 20.3 kB Without provenance Details for supertunnel-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for supertunnel 0.1
File Interpreter ABI Platform Actions
supertunnel-0.1-py3-none-any.whl Python 3 none any Details for supertunnel-0.1-py3-none-any.whl

Total release size: 46.5 kB

Release files / supertunnel-0.1.tar.gz

Download URL supertunnel-0.1.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
82722cc175254ac0166d3c0cbca2085d3769c827728436b6d92bc97e66280dfa
BLAKE2b-256 checksum
How to use checksums
0ae827b233135ce7b48da9c4ee3e46b1d95bd8fca24104021587aeaf2ef9ef78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

Release files / supertunnel-0.1-py3-none-any.whl

Download URL supertunnel-0.1-py3-none-any.whl
Size 26.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08887cf8de3edf69aa106a4ce6b6a24508a11e042d0faf6bb619541b91605e28
BLAKE2b-256 checksum
How to use checksums
d67461ba97c5cb00f42136783e358fde2e3080f3f94bd32e8a130e2ac55dff46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

Security for supertunnel 0.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page