Coder Social home page Coder Social logo

bgtunnel's People

Contributors

alpire avatar fermayo avatar hamiltont avatar jacobsvante avatar jmdcal avatar metakermit avatar soby-taulia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bgtunnel's Issues

Better connection validation

Today bgtunnel's connection validation method expects the server to write to stdout on a successful connection. Not every server does this so @hamiltont introduced #6 which allows passing in expect_hello=False to bgtunnel.open and thus bypassing the validation method. This workaround was added to 0.3.6.

Perhaps something is written to stdout but the buffer is not flushed. Look this up.

Remove pip2.6 ability to download bgtunnel

I may be incorrect here, but I don't believe bgtunnel works with python2.6 (EDIT: Requirements make this clear that 2.6 is not supported).

Is it possible to either

  1. add in 2.6 support (CentOS 6 comes with p2.6 by default πŸ‘Ž )
  2. make it so that pip for python2.6 does not see bgtunnel as an install option?

Problem to create the ssh tunnel intermittently

I'm testing this python module.
Sometimes I have an exceptio "bgtunnel.SSHTunnelError: stdin is not a tty", and sometimes the same script starts successfully. When I have the exception, if i try a another to start it, the script is running ...
I link the script with whom I'm doing my test :

import docker
import bgtunnel

def list_images(host, port):
    forwarder = bgtunnel.open(ssh_user="root", ssh_address=host, host_port=str(port))
    client = docker.Client(base_url="http://localhost:{0}".format(forwarder.bind_port)
    return client.images()

if __name__ == '__main__':
    print list_images("192.168.10.135", 5555)

If you can explain me, how to ensure that the exception doesn't appear ?

close connection

Hi!
I read docs but i can't find function to close exists connection. Each connection auto close or I must close? How do I close its?

Thanks

Specify ssh config file and/or known_hosts location?

I'm trying to relocate the ssh keys to another folder instead of the default on Linux. Currently I can use the identity_file kwarg to specify which private key file to use, but this only works if the known_hosts file is still in its original folder.

I've tried making a config file with both the identity file and known hosts file paths specified, but this does not work as the identity_file:

IdentityFile *path1*
UserKnownHostsFile *path2*

Is there a way to specify the known_hosts location, or a config file?

Edit:
Per the ssh manual page specifying the config is an existing option:

-F configfile
            Specifies an alternative per-user configuration file.  If a
            configuration file is given on the command line, the
            system-wide configuration file (/etc/ssh/ssh_config) will
            be ignored.  The default for the per-user configuration
            file is ~/.ssh/config.  If set to β€œnone”, no configuration
            files will be read.

It looks like this could be added very similarly to how identity_file is.

An additional/alternative option is to add -o, which allows (among other things) UserKnownHostsFile to be specified:

-o option
             Can be used to give options in the format used in the
             configuration file.  This is useful for specifying options
             for which there is no separate command-line flag.  For full
             details of the options listed below, and their possible
             values, see ssh_config(5).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.