Commit Graph

63 Commits (master)

Author SHA1 Message Date
David Wilson 3ddbf1a503 ansible: basic support for ssh_args 6 years ago
David Wilson ff617824a1 ansible: fix some flake8 errors
* Unused imports
* Undefined names in helpers.py
* Copyright header wrapping
6 years ago
Alex Willmer 227cd3aa60 ssh, sudo: Remove redundant else clause on bootstrap loop
Since the for loops don't contain any break statements the StreamErrors
will always be raised when the loop completes without the method
resturning.

See https://lgtm.com/rules/5980098/

Refs #61
6 years ago
David Wilson bdd8648bae ssh: enable compression by default
Using the same test as in 7af97c0365,
transmitted wire bytes drops from 135,531 to 133,071 (-1.81%), while
received drops from 21,073 to 14,775 (-30%).

Combined, both changes shave 13,914 bytes (-8.6%) off aggregate
bandwidth usage.

Make it configurable as compression hurts in some scenarios.
6 years ago
David Wilson b158259c86 Split up parent and master modules
Knocks 4kb off network footprint for a proxy connection.
6 years ago
David Wilson 326886832e Add license text everywhere. 6 years ago
David Wilson bbcf1a0bd4 Fix confusing return statements, closes #67. 6 years ago
Alex Willmer f2ea38a963 Add missing auth_incorrect_msg used to in exception message
Found using pylint
6 years ago
David Wilson 76e476dcfa Tidy up logging of command lines for easier cutpaste. 6 years ago
David Wilson dc446f9042 ssh: Learn to type passwords and supply pubkeys.
Now ssh requires a tty allocation. This presents a scalability problem,
a future version could selectively allocate a tty only if typing
passwords is desired.

Sudo's tty handling is now moved into mitogen.master.
6 years ago
David Wilson 4e8b9ecb27 ssh: Support disabling strict host key checking. 6 years ago
David Wilson 559b88ff12 ssh: Support specifying the port too. 6 years ago
David Wilson e7ff6259a3 Initial commit. 6 years ago