Skip to content

Latest commit

 

History

History
402 lines (390 loc) · 22.6 KB

changelog.rst

File metadata and controls

402 lines (390 loc) · 22.6 KB

Changelog

  • 467 (also 139, 412) Fully enable two-factor authentication (e.g. when a server requires AuthenticationMethods pubkey,keyboard-interactive). Thanks to @perryjrandall for the patch and to @nevins-b and Matt Robenolt for additional support.
  • 502 major Fix 'exec' requests in server mode to use get_string instead of get_text to avoid UnicodeDecodeError on non-UTF-8 input. Thanks to Anselm Kruis for the patch & discussion.
  • 401 Fix line number reporting in log output regarding invalid known_hosts line entries. Thanks to Dylan Thacker-Smith for catch & patch.
  • 525 backported Update the vendored Windows API addon to a more recent edition. Also fixes 193, 488, 498. Thanks to Jason Coombs.
  • 1.15.4 <2015-11-02>
  • 1.14.3 <2015-11-02>
  • 1.13.4 <2015-11-02>
  • 366 Fix ~paramiko.sftp_attributes.SFTPAttributes so its string representation doesn't raise exceptions on empty/initialized instances. Patch by Ulrich Petri.
  • 359 Use correct attribute name when trying to use Python 3's int.bit_length method; prior to fix, the Python 2 custom fallback implementation was always used, even on Python 3. Thanks to Alex Gaynor.
  • 594 backported Correct some post-Python3-port docstrings to specify bytes type instead of str. Credit to @redixin.
  • 565 Don't explode with IndexError when reading private key files lacking an -----END <type> PRIVATE KEY----- footer. Patch courtesy of Prasanna Santhanam.
  • 604 Add support for the aes192-ctr and aes192-cbc ciphers. Thanks to Michiel Tiller for noticing it was as easy as tweaking some key sizes :D
  • 356 (also 596, 365, 341, 164, 581, and a bunch of other duplicates besides) Add support for SHA-2 based key exchange (kex) algorithm diffie-hellman-group-exchange-sha256 and (H)MAC algorithms hmac-sha2-256 and hmac-sha2-512.

    This change includes tweaks to debug-level logging regarding algorithm-selection handshakes; the old all-in-one log line is now multiple easier-to-read, printed-at-handshake-time log lines.

    Thanks to the many people who submitted patches for this functionality and/or assisted in testing those patches. That list includes but is not limited to, and in no particular order: Matthias Witte, Dag Wieers, Ash Berlin, Etienne Perot, Gert van Dijk, @GuyShaanan, Aaron Bieber, @cyphase, and Eric Brown.

  • 1.15.3 <2015-10-02>
  • 554 backported Fix inaccuracies in the docstring for the ECDSA key class. Thanks to Jared Hance for the patch.
  • 516 backported Document ~paramiko.agent.AgentRequestHandler. Thanks to @toejough for report & suggestions.
  • 496 Fix a handful of small but critical bugs in Paramiko's GSSAPI support (note: this includes switching from PyCrypo's Random to os.urandom). Thanks to Anselm Kruis for catch & patch.
  • 491 (combines 62 and 439) Implement timeout functionality to address hangs from dropped network connections and/or failed handshakes. Credit to @vazir and @dacut for the original patches and to Olle Lundberg for reimplementation.
  • 490 Skip invalid/unparseable lines in known_hosts files, instead of raising ~paramiko.ssh_exception.SSHException. This brings Paramiko's behavior more in line with OpenSSH, which silently ignores such input. Catch & patch courtesy of Martin Topholm.
  • 404 Print details when displaying ~paramiko.ssh_exception.BadHostKeyException objects (expected vs received data) instead of just "hey shit broke". Patch credit: Loic Dachary.
  • 469 (also 488, 461 and like a dozen others) Fix a typo introduced in the 1.15 release which broke WinPageant support. Thanks to everyone who submitted patches, and to Steve Cohen who was the lucky winner of the cherry-pick lottery.
  • 353 (via 482) Fix a bug introduced in the Python 3 port which caused OverFlowError (and other symptoms) in SFTP functionality. Thanks to @dboreham for leading the troubleshooting charge, and to Scott Maxwell for the final patch.
  • 582 Fix some old setup.py related helper code which was breaking bdist_dumb on Mac OS X. Thanks to Peter Odding for the patch.
  • 22 major Try harder to connect to multiple network families (e.g. IPv4 vs IPv6) in case of connection issues; this helps with problems such as hosts which resolve both IPv4 and IPv6 addresses but are only listening on IPv4. Thanks to Dries Desmet for original report and Torsten Landschoff for the foundational patchset.
  • 402 Check to see if an SSH agent is actually present before trying to forward it to the remote end. This replaces what was usually a useless TypeError with a human-readable ~paramiko.ssh_exception.AuthenticationException. Credit to Ken Jordan for the fix and Yvan Marques for original report.
  • 1.15.2 <2014-12-19>
  • 1.14.2 <2014-12-19>
  • 1.13.3 <2014-12-19>
  • 413 (also 414, 420, 454) Be significantly smarter about polling & timing behavior when running proxy commands, to avoid unnecessary (often 100%!) CPU usage. Major thanks to Jason Dunsmore for report & initial patchset and to Chris Adams & John Morrissey for followup improvements.
  • 455 Tweak packet size handling to conform better to the OpenSSH RFCs; this helps address issues with interactive program cursors. Courtesy of Jeff Quast.
  • 428 Fix an issue in ~paramiko.file.BufferedFile (primarily used in the SFTP modules) concerning incorrect behavior by ~paramiko.file.BufferedFile.readlines on files whose size exceeds the buffer size. Thanks to @achapp for catch & patch.
  • 415 Fix ssh_config parsing to correctly interpret ProxyCommand none as the lack of a proxy command, instead of as a literal command string of "none". Thanks to Richard Spiers for the catch & Sean Johnson for the fix.
  • 431 backported Replace handrolled ssh_config parsing code with use of the shlex module. Thanks to Yan Kalchevskiy.
  • 422 backported Clean up some unused imports. Courtesy of Olle Lundberg.
  • 421 backported Modernize threading calls to user newer API. Thanks to Olle Lundberg.
  • 419 backported Modernize a bunch of the codebase internals to leverage decorators. Props to @beckjake for realizing we're no longer on Python 2.2 :D
  • 266 Change numbering of ~paramiko.transport.Transport channels to start at 0 instead of 1 for better compatibility with OpenSSH & certain server implementations which break on 1-indexed channels. Thanks to @egroeper for catch & patch.
  • 459 Tighten up agent connection closure behavior to avoid spurious ResourceWarning display in some situations. Thanks to @tkrapp for the catch.
  • 429 Server-level debug message logging was overlooked during the Python 3 compatibility update; Python 3 clients attempting to log SSH debug packets encountered type errors. This is now fixed. Thanks to @mjmaenpaa for the catch.
  • 320 Update our win_pageant module to be Python 3 compatible. Thanks to @sherbang and @adamkerz for the patches.
  • 1.15.1 <2014-09-22>
  • 399 SSH agent forwarding (potentially other functionality as well) would hang due to incorrect values passed into the new window size arguments for .Transport (thanks to a botched merge). This has been corrected. Thanks to Dylan Thacker-Smith for the report & patch.
  • 167 Add .SSHConfig.get_hostnames for easier introspection of a loaded SSH config file or object. Courtesy of Søren Løvborg.
  • 1.15.0 <2014-09-18>
  • 393 Replace internal use of PyCrypto's SHA.new with the stdlib's hashlib.sha1. Thanks to Alex Gaynor.
  • 267 (also 250, 241, 228) Add GSS-API / SSPI (e.g. Kerberos) key exchange and authentication support (installation docs here <gssapi>). Mega thanks to Sebastian Deiß, with assist by Torsten Landschoff.

    Note

    Unix users should be aware that the python-gssapi library (a requirement for using this functionality) only appears to support Python 2.7 and up at this time.

  • 346 major Fix an issue in private key files' encryption salts that could cause tracebacks and file corruption if keys were re-encrypted. Credit to Xavier Nunn.
  • 362 Allow users to control the SSH banner timeout. Thanks to Cory Benfield.
  • 372 Update default window & packet sizes to more closely adhere to the pertinent RFC; also expose these settings in the public API so they may be overridden by client code. This should address some general speed issues such as 175. Big thanks to Olle Lundberg for the update.
  • 373 major Attempt to fix a handful of issues (such as 354) related to infinite loops and threading deadlocks. Thanks to Olle Lundberg as well as a handful of community members who provided advice & feedback via IRC.
  • 374 (also 375) Old code cleanup courtesy of Olle Lundberg.
  • 377 Factor ~paramiko.channel.Channel openness sanity check into a decorator. Thanks to Olle Lundberg for original patch.
  • 298 major Don't perform point validation on ECDSA keys in known_hosts files, since a) this can cause significant slowdown when such keys exist, and b) known_hosts files are implicitly trustworthy. Thanks to Kieran Spear for catch & patch.

    Note

    This change bumps up the version requirement for the ecdsa library to 0.11.

  • 234 major Lower logging levels for a few overly-noisy log messages about secure channels. Thanks to David Pursehouse for noticing & contributing the fix.
  • 218 Add support for ECDSA private keys on the client side. Thanks to @aszlig for the patch.
  • 335 major Fix ECDSA key generation (generation of brand new ECDSA keys was broken previously). Thanks to @solarw for catch & patch.
  • 184 Support quoted values in SSH config file parsing. Credit to Yan Kalchevskiy.
  • 131 Add a ~paramiko.sftp_client.SFTPClient.listdir_iter method to ~paramiko.sftp_client.SFTPClient allowing for more efficient, async/generator based file listings. Thanks to John Begeman.
  • 378 backported Minor code cleanup in the SSH config module courtesy of Olle Lundberg.
  • 249 backported Consolidate version information into one spot. Thanks to Gabi Davar for the reminder.
  • 1.14.1 <2014-08-25>
  • 1.13.2 <2014-08-25>
  • 376 Be less aggressive about expanding variables in ssh_config files, which results in a speedup of SSH config parsing. Credit to Olle Lundberg.
  • 324 backported A bevvy of documentation typo fixes, courtesy of Roy Wellington.
  • 312 paramiko.transport.Transport had a bug in its __repr__ which surfaces during errors encountered within its __init__, causing problematic tracebacks in such situations. Thanks to Simon Percivall for catch & patch.
  • 272 Fix a bug where known_hosts parsing hashed the input hostname as well as the hostnames from the known_hosts file, on every comparison. Thanks to @sigmunau for final patch and @ostacey for the original report.
  • 239 Add Windows-style CRLF support to SSH config file parsing. Props to Christopher Swenson.
  • 229 backported Fix a couple of incorrectly-copied docstrings' .. versionadded:: RST directives. Thanks to Aarni Koskela for the catch.
  • 169 backported Minor refactor of paramiko.sftp_client.SFTPClient.put thanks to Abhinav Upadhyay.
  • 285 (also 352) Update our Python 3 b() compatibility shim to handle buffer objects correctly; this fixes a frequently reported issue affecting many users, including users of the bzr software suite. Thanks to @basictheprogram for the initial report, Jelmer Vernooij for the fix and Andrew Starr-Bochicchio & Jeremy T. Bouse (among others) for discussion & feedback.
  • 371 Add Travis support & docs update for Python 3.4. Thanks to Olle Lundberg.
  • 1.14.0 <2014-05-07>
  • 1.13.1 <2014-05-07>
  • 1.12.4 <2014-05-07>
  • 1.11.6 <2014-05-07>
  • - paramiko.file.BufferedFile.read incorrectly returned text strings after the Python 3 migration, despite bytes being more appropriate for file contents (which may be binary or of an unknown encoding.) This has been addressed.

    Note

    paramiko.file.BufferedFile.readline continues to return strings, not bytes, as "lines" only make sense for textual data. It assumes UTF-8 by default.

    This should fix this issue raised on the Obnam mailing list. Thanks to Antoine Brenner for the patch.

  • - Added self.args for exception classes. Used for unpickling. Related to (Fabric #986, Fabric #714). Thanks to Alex Plugaru.
  • - Fix logging error in sftp_client for filenames containing the '%' character. Thanks to Antoine Brenner.
  • 308 Fix regression in dsskey.py that caused sporadic signature verification failures. Thanks to Chris Rose.
  • 299 Use deterministic signatures for ECDSA keys for improved security. Thanks to Alex Gaynor.
  • 297 Replace PyCrypto's Random with os.urandom for improved speed and security. Thanks again to Alex.
  • 295 Swap out a bunch of PyCrypto hash functions with use of hashlib. Thanks to Alex Gaynor.
  • 290 (also 292) Add support for building universal (Python 2+3 compatible) wheel files during the release process. Courtesy of Alex Gaynor.
  • 284 Add Python language trove identifiers to setup.py. Thanks to Alex Gaynor for catch & patch.
  • 235 Improve string type testing in a handful of spots (e.g. s/if type(x) is str/if isinstance(x, basestring)/g.) Thanks to @ksamuel for the report.
  • 1.13.0 <2014-03-13>
  • 1.12.3 <2014-03-13>
  • 1.11.5 <2014-03-13>
  • 1.10.7 <2014-03-13>
  • 16 Python 3 support! Our test suite passes under Python 3, and it (& Fabric's test suite) continues to pass under Python 2. Python 2.5 is no longer supported with this change!

    The merged code was built on many contributors' efforts, both code & feedback. In no particular order, we thank Daniel Goertzen, Ivan Kolodyazhny, Tomi Pieviläinen, Jason R. Coombs, Jan N. Schulze, @Lazik, Dorian Pula, Scott Maxwell, Tshepang Lekhonkhobe, Aaron Meurer, and Dave Halter.

  • 256 backported Convert API documentation to Sphinx, yielding a new API docs website to replace the old Epydoc one. Thanks to Olle Lundberg for the initial conversion work.
  • - Use constant-time hash comparison operations where possible, to protect against timing-based attacks. Thanks to Alex Gaynor for the patch.
  • 1.12.2 <2014-02-14>
  • 1.11.4 <2014-02-14>
  • 1.10.6 <2014-02-14>
  • 58 Allow client code to access the stored SSH server banner via Transport.get_banner <paramiko.transport.Transport.get_banner>. Thanks to @Jhoanor for the patch.
  • 252 (Fabric #1020) Enhanced the implementation of ProxyCommand to avoid a deadlock/hang condition that frequently occurs at Transport shutdown time. Thanks to Mateusz Kobos, Matthijs van der Vleuten and Guillaume Zitta for the original reports and to Marius Gedminas for helping test nontrivial use cases.
  • 268 Fix some missed renames of ProxyCommand related error classes. Thanks to Marius Gedminas for catch & patch.
  • 34 (PR 35) Fix SFTP prefetching incompatibility with some SFTP servers regarding request/response ordering. Thanks to Richard Kettlewell.
  • 193 (and its attentant PRs 230 & 253) Fix SSH agent problems present on Windows. Thanks to David Hobbs for initial report and to Aarni Koskela & Olle Lundberg for the patches.
  • 1.12.1 <2014-01-08>
  • 1.11.3 <2014-01-08>
  • 1.10.5 <2014-01-08>
  • 225 (1.12+) Note ecdsa requirement in README. Thanks to Amaury Rodriguez for the catch.
  • 176 Fix AttributeError bugs in known_hosts file (re)loading. Thanks to Nathan Scowcroft for the patch & Martin Blumenstingl for the initial test case.
  • 1.12.0 <2013-09-27>
  • 1.11.2 <2013-09-27>
  • 1.10.4 <2013-09-27>
  • 152 Add tentative support for ECDSA keys. This adds the ecdsa module as a new dependency of Paramiko. The module is available at warner/python-ecdsa on Github and ecdsa on PyPI.

    • Note that you might still run into problems with key negotiation --Paramiko picks the first key that the server offers, which might not be what you have in your known_hosts file.
    • Mega thanks to Ethan Glasser-Camp for the patch.
  • 136 Add server-side support for the SSH protocol's 'env' command. Thanks to Benjamin Pollack for the patch.
  • 156 (1.11+) Fix potential deadlock condition when using Channel objects as sockets (e.g. when using SSH gatewaying). Thanks to Steven Noonan and Frank Arnold for catch & patch.
  • 179 Fix a missing variable causing errors when an ssh_config file has a non-default AddressFamily set. Thanks to Ed Marshall & Tomaz Muraus for catch & patch.
  • 200 Fix an exception-causing typo in demo_simple.py. Thanks to Alex Buchanan for catch & Dave Foster for patch.
  • 199 Typo fix in the license header cross-project. Thanks to Armin Ronacher for catch & patch.
  • 1.11.1 <2013-09-20>
  • 1.10.3 <2013-09-20>
  • 162 Clean up HMAC module import to avoid deadlocks in certain uses of SSHClient. Thanks to Gernot Hillier for the catch & suggested fix.
  • 36 Fix the port-forwarding demo to avoid file descriptor errors. Thanks to Jonathan Halcrow for catch & patch.
  • 168 Update config handling to properly handle multiple 'localforward' and 'remoteforward' keys. Thanks to Emre Yılmaz for the patch.
  • 1.11.0 <2013-07-26>
  • 1.10.2 <2013-07-26>
  • 98 major On Windows, when interacting with the PuTTY PAgeant, Paramiko now creates the shared memory map with explicit Security Attributes of the user, which is the same technique employed by the canonical PuTTY library to avoid permissions issues when Paramiko is running under a different UAC context than the PuTTY Ageant process. Thanks to Jason R. Coombs for the patch.
  • 100 Remove use of PyWin32 in win_pageant module. Module was already dependent on ctypes for constructing appropriate structures and had ctypes implementations of all functionality. Thanks to Jason R. Coombs for the patch.
  • 87 major Ensure updates to known_hosts files account for any updates to said files after Paramiko initially read them. (Includes related fix to guard against duplicate entries during subsequent known_hosts loads.) Thanks to @sunweaver for the contribution.
  • 153 (also 67) Warn on parse failure when reading known_hosts file. Thanks to @glasserc for patch.
  • 146 Indentation fixes for readability. Thanks to Abhinav Upadhyay for catch & patch.
  • 1.10.1 <2013-04-05>
  • 142 (Fabric #811) SFTP put of empty file will still return the attributes of the put file. Thanks to Jason R. Coombs for the patch.
  • 154 (Fabric #876) Forwarded SSH agent connections left stale local pipes lying around, which could cause local (and sometimes remote or network) resource starvation when running many agent-using remote commands. Thanks to Kevin Tegtmeier for catch & patch.
  • 1.10.0 <2013-03-01>
  • 66 Batch SFTP writes to help speed up file transfers. Thanks to Olle Lundberg for the patch.
  • 133 major Fix handling of window-change events to be on-spec and not attempt to wait for a response from the remote sshd; this fixes problems with less common targets such as some Cisco devices. Thanks to Phillip Heller for catch & patch.
  • 93 Overhaul SSH config parsing to be in line with man ssh_config (& the behavior of ssh itself), including addition of parameter expansion within config values. Thanks to Olle Lundberg for the patch.
  • 110 Honor SSH config AddressFamily setting when looking up local host's FQDN. Thanks to John Hensley for the patch.
  • 128 Defer FQDN resolution until needed, when parsing SSH config files. Thanks to Parantapa Bhattacharya for catch & patch.
  • 102 major Forego random padding for packets when running under *-ctr ciphers. This corrects some slowdowns on platforms where random byte generation is inefficient (e.g. Windows). Thanks to @warthog618 for catch & patch, and Michael van der Kolff for code/technique review.
  • 127 Turn SFTPFile into a context manager. Thanks to Michael Williamson for the patch.
  • 116 Limit Message.get_bytes to an upper bound of 1MB to protect against potential DoS vectors. Thanks to @mvschaik for catch & patch.
  • 115 Add convenience get_pty kwarg to Client.exec_command so users not manually controlling a channel object can still toggle PTY creation. Thanks to Michael van der Kolff for the patch.
  • 71 Add SFTPClient.putfo and .getfo methods to allow direct uploading/downloading of file-like objects. Thanks to Eric Buehl for the patch.
  • 113 Add timeout parameter to SSHClient.exec_command for easier setting of the command's internal channel object's timeout. Thanks to Cernov Vladimir for the patch.
  • 94 Remove duplication of SSH port constant. Thanks to Olle Lundberg for the catch.
  • 80 Expose the internal "is closed" property of the file transfer class BufferedFile as .closed, better conforming to Python's file interface. Thanks to @smunaut and James Hiscock for catch & patch.