Skip to main content

Wrappers for remote exec, local exec.

Project description

SSH Helper


Python Library to create SSH tunnels.


SSHTunnel(object)

import import ssh_tunnel
tun = ssh_tunnel.SSHTunnel(
        <remote-site> [local_port(4444), remote_port(3306), 
        remote interface("localhost"), remote_user=<current_user>, spin=(True,False),
        foreground=(True,False), immediate=(True, False)
        )

RemoteDB(SSHTunnel):

-- Execute MySQL queries over a forwarded SSH connection

remote_db = ssh_tunnel.RemoteDB(
    db_hostname, db_user=<current_user>, db_pass=<None>, db_port=4444, database=<None>, **SSHTunnel(*, **)
    )

Tunnels(object):

-- Registry for SSH Tunnels; also allows iteration (for example, to kill the connection.) Allows iteration. -- To register a tunnel, use the register()

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

framelake-0.1.0.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

framelake-0.1.0-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

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