ssh tunnel v0.3.2 releases: SSH tunnels to remote server
SSH tunnels to a remote server.API allows either initializing the tunnel and starting it or using a with context, which will take care of starting and stopping the tunnel.
One of the typical scenarios where sshtunnel is helpful is depicted in the figure below. Users may need to connect a port of a remote server (i.e. 8080) where only SSH port (usually port 22) is reachable.
If allowed by the SSH server, it is also possible to reach a private server (from the perspective of a REMOTE SERVER) not directly visible from the outside (LOCAL CLIENT‘s perspective).
pip install sshtunnel
Copyright (c) 2014-2019 Pahaz Blinov