Skip to main content

SuperTunnel makes for easy, long-lived SSH tunneling!

Project description

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.

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

supertunnel-0.1.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

supertunnel-0.1-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file supertunnel-0.1.tar.gz.

File metadata

  • Download URL: supertunnel-0.1.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for supertunnel-0.1.tar.gz
Algorithm Hash digest
SHA256 82722cc175254ac0166d3c0cbca2085d3769c827728436b6d92bc97e66280dfa
MD5 94dab5c7212a363fc4c77bd3cf347bb7
BLAKE2b-256 0ae827b233135ce7b48da9c4ee3e46b1d95bd8fca24104021587aeaf2ef9ef78

See more details on using hashes here.

File details

Details for the file supertunnel-0.1-py3-none-any.whl.

File metadata

  • Download URL: supertunnel-0.1-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for supertunnel-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08887cf8de3edf69aa106a4ce6b6a24508a11e042d0faf6bb619541b91605e28
MD5 4f3b0cc16968bfcf20644a97896fb2e8
BLAKE2b-256 d67461ba97c5cb00f42136783e358fde2e3080f3f94bd32e8a130e2ac55dff46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page