Coder Social home page Coder Social logo

sisqo's People

Contributors

alexforster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sisqo's Issues

Example code is out of date

@todo try actually running the example

  • connect() is now authenticate() in v2.x
  • SSH() constructor takes (username, host), not (host, username)

Try provided passwords/passphrases multiple times during authentication

When going through multiple jumpboxes (rare, I know), it's possible to be prompted twice for a passphrase or password. Right now, the default promptCallback will never try the same credential twice in succession, instead considering that an indication of failure and bailing out. Since ssh does not distinguish between a successful or unsuccessful response to Password: or Enter passphrase for key: without turning up verbosity, let's relax this and allow the default promptCalback to try the same credential successively, say, three times? Arbitrary, but should cover almost all imaginable out-of-box usecases.

SSH._proxyCommand not initialized properly

In SSH.py the line

  self._proxyCommand = str(proxyCommand)

will result in the string 'None' being stored in the _proxyCommand variable when the default parameter is used. This causes this line

   self._proxySocket = paramiko.ProxyCommand(proxyCommand) if proxyCommand else None

in the __ enter __ method to fail with the error 'OSError: [Errno 2] No such file or directory'. Here proxyCommand is not None, but actually contains the string 'None'.

Python 3 compatibility

Should be pretty easy to port our code to Python 3.

ptyprocess is PY3 compatible.

If pyte+wcwidth aren't PY3 compatible, then we're gonna' have a bad time – they do a lot of heavy lifting.

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.