Old Changelog

For newer changes see https://github.com/ploxiln/paramiko-ng/releases

Following are changes pre-fork, up to just past version 2.4.1

2.4.1 2018-03-12

  • [Bug] #1039: Ed25519 auth key decryption raised an unexpected exception when given a unicode password string (typical in python 3). Report by Theodor van Nahl and fix by Pierce Lopez.
  • [Bug] #1168: Add newer key classes for Ed25519 and ECDSA to paramiko.__all__ so that code introspecting that attribute, or using from paramiko import * (such as some IDEs) sees them. Thanks to @patriksevallius for the patch.
  • [Bug] #1175: Fix a security flaw (CVE-2018-7750) in Paramiko’s server mode (emphasis on server mode; this does not impact client use!) where authentication status was not checked before processing channel-open and other requests typically only sent after authenticating. Big thanks to Matthijs Kooijman for the report.

2.3.2 2018-03-12

  • [Bug] #1108: Rename a private method keyword argument (which was named async) so that we’re compatible with the upcoming Python 3.7 release (where async is a new keyword.) Thanks to @vEpiphyte for the report.
  • [Bug] #1039: Ed25519 auth key decryption raised an unexpected exception when given a unicode password string (typical in python 3). Report by Theodor van Nahl and fix by Pierce Lopez.
  • [Bug] #1168: Add newer key classes for Ed25519 and ECDSA to paramiko.__all__ so that code introspecting that attribute, or using from paramiko import * (such as some IDEs) sees them. Thanks to @patriksevallius for the patch.
  • [Bug] #1175: Fix a security flaw (CVE-2018-7750) in Paramiko’s server mode (emphasis on server mode; this does not impact client use!) where authentication status was not checked before processing channel-open and other requests typically only sent after authenticating. Big thanks to Matthijs Kooijman for the report.
  • [Support]: Include LICENSE file in wheel archives.

2.2.3 2018-03-12

  • [Bug] #1071: Certificate support broke the no-certificate case for Ed25519 keys (symptom is an AttributeError about public_blob.) This went uncaught due to cert autoload behavior (i.e. our test suite never actually ran the no-cert case, because the cert existed!) Both issues have been fixed. Thanks to John Hu for the report.
  • [Bug] #1108: Rename a private method keyword argument (which was named async) so that we’re compatible with the upcoming Python 3.7 release (where async is a new keyword.) Thanks to @vEpiphyte for the report.
  • [Bug] #1039: Ed25519 auth key decryption raised an unexpected exception when given a unicode password string (typical in python 3). Report by Theodor van Nahl and fix by Pierce Lopez.
  • [Bug] #1168: Add newer key classes for Ed25519 and ECDSA to paramiko.__all__ so that code introspecting that attribute, or using from paramiko import * (such as some IDEs) sees them. Thanks to @patriksevallius for the patch.
  • [Bug] #1175: Fix a security flaw (CVE-2018-7750) in Paramiko’s server mode (emphasis on server mode; this does not impact client use!) where authentication status was not checked before processing channel-open and other requests typically only sent after authenticating. Big thanks to Matthijs Kooijman for the report.
  • [Support]: Include LICENSE file in wheel archives.

2.1.5 2018-03-12

  • [Bug] #1071: Certificate support broke the no-certificate case for Ed25519 keys (symptom is an AttributeError about public_blob.) This went uncaught due to cert autoload behavior (i.e. our test suite never actually ran the no-cert case, because the cert existed!) Both issues have been fixed. Thanks to John Hu for the report.
  • [Bug] #1108: Rename a private method keyword argument (which was named async) so that we’re compatible with the upcoming Python 3.7 release (where async is a new keyword.) Thanks to @vEpiphyte for the report.
  • [Bug] #1039: Ed25519 auth key decryption raised an unexpected exception when given a unicode password string (typical in python 3). Report by Theodor van Nahl and fix by Pierce Lopez.
  • [Bug] #1168: Add newer key classes for Ed25519 and ECDSA to paramiko.__all__ so that code introspecting that attribute, or using from paramiko import * (such as some IDEs) sees them. Thanks to @patriksevallius for the patch.
  • [Bug] #1175: Fix a security flaw (CVE-2018-7750) in Paramiko’s server mode (emphasis on server mode; this does not impact client use!) where authentication status was not checked before processing channel-open and other requests typically only sent after authenticating. Big thanks to Matthijs Kooijman for the report.
  • [Support]: Include LICENSE file in wheel archives.

2.0.8 2018-03-12

  • [Bug] #1071: Certificate support broke the no-certificate case for Ed25519 keys (symptom is an AttributeError about public_blob.) This went uncaught due to cert autoload behavior (i.e. our test suite never actually ran the no-cert case, because the cert existed!) Both issues have been fixed. Thanks to John Hu for the report.
  • [Bug] #1108: Rename a private method keyword argument (which was named async) so that we’re compatible with the upcoming Python 3.7 release (where async is a new keyword.) Thanks to @vEpiphyte for the report.
  • [Bug] #1039: Ed25519 auth key decryption raised an unexpected exception when given a unicode password string (typical in python 3). Report by Theodor van Nahl and fix by Pierce Lopez.
  • [Bug] #1168: Add newer key classes for Ed25519 and ECDSA to paramiko.__all__ so that code introspecting that attribute, or using from paramiko import * (such as some IDEs) sees them. Thanks to @patriksevallius for the patch.
  • [Bug] #1175: Fix a security flaw (CVE-2018-7750) in Paramiko’s server mode (emphasis on server mode; this does not impact client use!) where authentication status was not checked before processing channel-open and other requests typically only sent after authenticating. Big thanks to Matthijs Kooijman for the report.
  • [Support]: Include LICENSE file in wheel archives.

1.18.5 2018-03-12

  • [Bug] #1108: Rename a private method keyword argument (which was named async) so that we’re compatible with the upcoming Python 3.7 release (where async is a new keyword.) Thanks to @vEpiphyte for the report.
  • [Bug] #1175: Fix a security flaw (CVE-2018-7750) in Paramiko’s server mode (emphasis on server mode; this does not impact client use!) where authentication status was not checked before processing channel-open and other requests typically only sent after authenticating. Big thanks to Matthijs Kooijman for the report.

1.17.6 2018-03-12

  • [Bug] #1055: (also #1056, #1057, #1058, #1059) Fix up host-key checking in our GSSAPI support, which was previously using an incorrect API call. Thanks to Anselm Kruis for the patches.
  • [Bug] #1108: Rename a private method keyword argument (which was named async) so that we’re compatible with the upcoming Python 3.7 release (where async is a new keyword.) Thanks to @vEpiphyte for the report.
  • [Bug] #1175: Fix a security flaw (CVE-2018-7750) in Paramiko’s server mode (emphasis on server mode; this does not impact client use!) where authentication status was not checked before processing channel-open and other requests typically only sent after authenticating. Big thanks to Matthijs Kooijman for the report.

2.4.0 2017-11-14

  • [Feature]: Add a new passphrase kwarg to SSHClient.connect so users may disambiguate key-decryption passphrases from password-auth passwords. (This is a backwards compatible change; password will still pull double duty as a passphrase when passphrase is not given.)

  • [Support] #1070: Drop Python 2.6 and Python 3.3 support; now only 2.7 and 3.4+ are supported. If you’re unable to upgrade from 2.6 or 3.3, please stick to the Paramiko 2.3.x (or below) release lines.

  • [Support]: Include LICENSE file in wheel archives.

  • [Support] #1100: Updated the test suite & related docs/metadata/config to be compatible with pytest instead of using the old, custom, crufty unittest-based test.py.

    This includes marking known-slow tests (mostly the SFTP ones) so they can be filtered out by inv test’s default behavior; as well as other minor tweaks to test collection and/or display (for example, GSSAPI tests are collected, but skipped, instead of not even being collected by default as in test.py.)

  • [Support]: Update tearDown of client test suite to avoid hangs due to eternally blocking accept() calls on the internal server thread (which can occur when test code raises an exception before actually connecting to the server.)

2.3.1 2017-09-22

  • [Bug] #1071: Certificate support broke the no-certificate case for Ed25519 keys (symptom is an AttributeError about public_blob.) This went uncaught due to cert autoload behavior (i.e. our test suite never actually ran the no-cert case, because the cert existed!) Both issues have been fixed. Thanks to John Hu for the report.

2.3.0 2017-09-18

  • [Feature] #1042: (also partially #531) Implement basic client-side certificate authentication (as per the OpenSSH vendor extension.)

    The core implementation is PKey.load_certificate and its corresponding .public_blob attribute on key objects, which is honored in the auth and transport modules. Additionally, SSHClient.connect will now automatically load certificate data alongside private key data when one has appropriately-named cert files (e.g. id_rsa-cert.pub) - see its docstring for details.

    Thanks to Jason Rigby for a first draft (#531) and to Paul Kapp for the second draft, upon which the current functionality has been based (with modifications.)

    Note

    This support is client-focused; Paramiko-driven server code is capable of handling cert-bearing pubkey auth packets, but it does not interpret any cert-specific fields, so the end result is functionally identical to a vanilla pubkey auth process (and thus requires e.g. prepopulated authorized-keys data.) We expect full server-side cert support to follow later.

  • [Feature] #1013: Added pre-authentication banner support for the server interface (ServerInterface.get_banner plus related support in Transport/AuthHandler.) Patch courtesy of Dennis Kaarsemaker.

  • [Feature] #1026: Update Ed25519Key so its constructor offers the same file_obj parameter as its sibling key classes. Credit: Michal Kuffa.

  • [Feature] #1063: Add a gss_trust_dns option to Client and Transport to allow explicitly setting whether or not DNS canonicalization should occur when using GSSAPI. Thanks to Richard E. Silverman for the report & Sebastian Deiß for initial patchset.

  • [Bug] #60: (via #1037) Paramiko originally defaulted to zlib compression level 9 (when one connects with compression=True; it defaults to off.) This has been found to be quite wasteful and tends to cause much longer transfers in most cases, than is necessary.

    OpenSSH defaults to compression level 6, which is a much more reasonable setting (nearly identical compression characteristics but noticeably, sometimes significantly, faster transmission); Paramiko now uses this value instead.

    Thanks to Damien Dubé for the report and @DrNeutron for investigating & submitting the patch.

  • [Support] #1012: (via #1016) Enhance documentation around the new SFTP.posix_rename method so it’s referenced in the ‘standard’ rename method for increased visibility. Thanks to Marius Flage for the report.

  • [Support] #1041: Modify logic around explicit disconnect messages, and unknown-channel situations, so that they rely on centralized shutdown code instead of running their own. This is at worst removing some unnecessary code, and may help with some situations where Paramiko hangs at the end of a session. Thanks to Paul Kapp for the patch.

  • [Support]: Display exception type and message when logging auth-rejection messages (ones reading Auth rejected: unsupported or mangled public key); previously this error case had a bare except and did not display exactly why the key failed. It will now append info such as KeyError: 'some-unknown-type-string' or similar.

  • [Support]: Ed25519 keys never got proper API documentation support; this has been fixed.

  • [Support] #979: Update how we use Cryptography’s signature/verification methods so we aren’t relying on a deprecated API. Thanks to Paul Kehrer for the patch.

    Warning

    This bumps the minimum Cryptography version from 1.1 to 1.5. Such an upgrade should be backwards compatible and easy to do. See their changelog for additional details.

2.2.2 2017-09-18

  • [Bug] #945: (backport of #910 and re: #865) SSHClient now requests the type of host key it has (e.g. from known_hosts) and does not consider a different type to be a “Missing” host key. This fixes a common case where an ECDSA key is in known_hosts and the server also has an RSA host key. Thanks to Pierce Lopez.
  • [Bug] #1055: (also #1056, #1057, #1058, #1059) Fix up host-key checking in our GSSAPI support, which was previously using an incorrect API call. Thanks to Anselm Kruis for the patches.
  • [Bug] #1060: Fix key exchange (kex) algorithm list for GSSAPI authentication; previously, the list used solely out-of-date algorithms, and now contains newer ones listed preferentially before the old. Credit: Anselm Kruis.
  • [Bug] #1061: Clean up GSSAPI authentication procedures so they do not prevent normal fallback to other authentication methods on failure. (In other words, presence of GSSAPI functionality on a target server precluded use of _any_ other auth type if the user was unable to pass GSSAPI auth.) Patch via Anselm Kruis.
  • [Bug] #1065: Add rekeying support to GSSAPI connections, which was erroneously missing. Without this fix, any attempt to renegotiate the transport keys for a gss-kex-authed Transport would cause a MIC failure and terminate the connection. Thanks to Sebastian Deiß and Anselm Kruis for the patch.

2.1.4 2017-09-18

  • [Bug] #990: The (added in 2.2.0) bcrypt dependency should have been on version 3.1.3 or greater (was initially set to 3.0.0 or greater.) Thanks to Paul Howarth for the report.
  • [Bug] #993: Ed25519 host keys were not comparable/hashable, causing an exception if such a key existed in a known_hosts file. Thanks to Oleh Prypin for the report and Pierce Lopez for the fix.
  • [Bug] #945: (backport of #910 and re: #865) SSHClient now requests the type of host key it has (e.g. from known_hosts) and does not consider a different type to be a “Missing” host key. This fixes a common case where an ECDSA key is in known_hosts and the server also has an RSA host key. Thanks to Pierce Lopez.
  • [Bug] #1055: (also #1056, #1057, #1058, #1059) Fix up host-key checking in our GSSAPI support, which was previously using an incorrect API call. Thanks to Anselm Kruis for the patches.
  • [Bug] #1060: Fix key exchange (kex) algorithm list for GSSAPI authentication; previously, the list used solely out-of-date algorithms, and now contains newer ones listed preferentially before the old. Credit: Anselm Kruis.
  • [Bug] #1061: Clean up GSSAPI authentication procedures so they do not prevent normal fallback to other authentication methods on failure. (In other words, presence of GSSAPI functionality on a target server precluded use of _any_ other auth type if the user was unable to pass GSSAPI auth.) Patch via Anselm Kruis.
  • [Bug] #1065: Add rekeying support to GSSAPI connections, which was erroneously missing. Without this fix, any attempt to renegotiate the transport keys for a gss-kex-authed Transport would cause a MIC failure and terminate the connection. Thanks to Sebastian Deiß and Anselm Kruis for the patch.

2.0.7 2017-09-18

  • [Bug] #990: The (added in 2.2.0) bcrypt dependency should have been on version 3.1.3 or greater (was initially set to 3.0.0 or greater.) Thanks to Paul Howarth for the report.
  • [Bug] #993: Ed25519 host keys were not comparable/hashable, causing an exception if such a key existed in a known_hosts file. Thanks to Oleh Prypin for the report and Pierce Lopez for the fix.
  • [Bug] #945: (backport of #910 and re: #865) SSHClient now requests the type of host key it has (e.g. from known_hosts) and does not consider a different type to be a “Missing” host key. This fixes a common case where an ECDSA key is in known_hosts and the server also has an RSA host key. Thanks to Pierce Lopez.
  • [Bug] #1055: (also #1056, #1057, #1058, #1059) Fix up host-key checking in our GSSAPI support, which was previously using an incorrect API call. Thanks to Anselm Kruis for the patches.
  • [Bug] #1060: Fix key exchange (kex) algorithm list for GSSAPI authentication; previously, the list used solely out-of-date algorithms, and now contains newer ones listed preferentially before the old. Credit: Anselm Kruis.
  • [Bug] #1061: Clean up GSSAPI authentication procedures so they do not prevent normal fallback to other authentication methods on failure. (In other words, presence of GSSAPI functionality on a target server precluded use of _any_ other auth type if the user was unable to pass GSSAPI auth.) Patch via Anselm Kruis.
  • [Bug] #1065: Add rekeying support to GSSAPI connections, which was erroneously missing. Without this fix, any attempt to renegotiate the transport keys for a gss-kex-authed Transport would cause a MIC failure and terminate the connection. Thanks to Sebastian Deiß and Anselm Kruis for the patch.

1.18.4 2017-09-18

  • [Bug] #945: (backport of #910 and re: #865) SSHClient now requests the type of host key it has (e.g. from known_hosts) and does not consider a different type to be a “Missing” host key. This fixes a common case where an ECDSA key is in known_hosts and the server also has an RSA host key. Thanks to Pierce Lopez.
  • [Bug] #1055: (also #1056, #1057, #1058, #1059) Fix up host-key checking in our GSSAPI support, which was previously using an incorrect API call. Thanks to Anselm Kruis for the patches.

2.2.1 2017-06-13

  • [Bug] #990: The (added in 2.2.0) bcrypt dependency should have been on version 3.1.3 or greater (was initially set to 3.0.0 or greater.) Thanks to Paul Howarth for the report.
  • [Bug] #993: Ed25519 host keys were not comparable/hashable, causing an exception if such a key existed in a known_hosts file. Thanks to Oleh Prypin for the report and Pierce Lopez for the fix.

2.2.0 2017-06-09

  • [Feature] #325: (via #972) Add Ed25519 support, for both host keys and user authentication. Big thanks to Alex Gaynor for the patch.

    Note

    This change adds the bcrypt and pynacl Python libraries as dependencies. No C-level dependencies beyond those previously required (for Cryptography) have been added.

  • [Feature] #951: Add support for ECDH key exchange (kex), specifically the algorithms ecdh-sha2-nistp256, ecdh-sha2-nistp384, and ecdh-sha2-nistp521. They now come before the older diffie-hellman-* family of kex algorithms in the preferred-kex list. Thanks to Shashank Veerapaneni for the patch & Pierce Lopez for a follow-up.

  • [Feature] #857: Allow SSHClient.set_missing_host_key_policy to accept policy classes _or_ instances, instead of only instances, thus fixing a long-standing gotcha for unaware users.

  • [Feature] #869: Add an auth_timeout kwarg to SSHClient.connect (default: 30s) to avoid hangs when the remote end becomes unresponsive during the authentication step. Credit to @timsavage.

    Note

    This technically changes behavior, insofar as very slow auth steps >30s will now cause timeout exceptions instead of completing. We doubt most users will notice; those affected can simply give a higher value to auth_timeout.

  • [Feature] #65: (via #471) Add support for OpenSSH’s SFTP posix-rename protocol extension (section 3.3 of OpenSSH’s protocol extension document), via a new posix_rename method in SFTPClient and SFTPServerInterface. Thanks to Wren Turkal for the initial patch & Mika Pflüger for the enhanced, merged PR.

  • [Support] #866: (also #838) Remove an old test-related file we don’t support, and add PyPy to Travis-CI config. Thanks to Pierce Lopez for the final patch and Pedro Rodrigues for an earlier edition.

  • [Support] #974: Overhaul the codebase to be PEP-8, etc, compliant (i.e. passes the maintainer’s preferred flake8 configuration) and add a flake8 step to the Travis config. Big thanks to Dorian Pula!

  • [Support]: A big formatting pass to clean up an enormous number of invalid Sphinx reference links, discovered by switching to a modern, rigorous nitpicking doc-building mode.

  • [Support] #956: Switch code coverage service from coveralls.io to codecov.io (& then disable the latter’s auto-comments.) Thanks to Nikolai Røed Kristiansen for the patch.

  • [Support] #921: Tighten up the __hash__ implementation for various key classes; less code is good code. Thanks to Francisco Couzo for the patch.

  • [Support] #906: Clean up a handful of outdated imports and related tweaks. Thanks to Pierce Lopez.

2.1.3 2017-06-09

  • [Bug] #683: Make util.log_to_file append instead of replace. Thanks to @vlcinsky for the report.

  • [Bug] #949: SSHClient and Transport could cause a memory leak if there’s a connection problem or protocol error, even if Transport.close() is called. Thanks Kyle Agronick for the discovery and investigation, and Pierce Lopez for assistance.

  • [Bug] #794: (via #981) Prior support for ecdsa-sha2-nistp(384|521) algorithms didn’t fully extend to covering host keys, preventing connection to hosts which only offer these key types and no others. This is now fixed. Thanks to @ncoult and @kasdoe for reports and Pierce Lopez for the patch.

  • [Bug] #900: (via #911) Prefer newer ecdsa-sha2-nistp keys over RSA and DSA keys during host key selection. This improves compatibility with OpenSSH, both in terms of general behavior, and also re: ability to properly leverage OpenSSH-modified known_hosts files. Credit: @kasdoe for original report/PR and Pierce Lopez for the second draft.

  • [Bug] #667: The RC4/arcfour family of ciphers has been broken since version 2.0; but since the algorithm is now known to be completely insecure, we are opting to remove support outright instead of fixing it. Thanks to Alex Gaynor for catch & patch.

  • [Bug] #983: Move sha1 above the now-arguably-broken md5 in the list of preferred MAC algorithms, as an incremental security improvement for users whose target systems offer both. Credit: Pierce Lopez.

  • [Bug] #741: (also #809, #772; all via #912) Writing encrypted/password-protected private key files was silently broken since 2.0 due to an incorrect API call; this has been fixed.

    Includes a directly related fix, namely adding the ability to read AES-256-CBC ciphered private keys (which is now what we tend to write out as it is Cryptography’s default private key cipher.)

    Thanks to @virlos for the original report, Chris Harris and @ibuler for initial draft PRs, and @jhgorrell for the final patch.

  • [Bug] #971: Allow any type implementing the buffer API to be used with BufferedFile, Channel, and SFTPFile. This resolves a regression introduced in 1.13 with the Python 3 porting changes, when using types such as memoryview. Credit: Martin Packman.

  • [Bug] #984: Enhance default cipher preference order such that aes(192|256)-cbc are preferred over blowfish-cbc. Thanks to Alex Gaynor.

  • [Bug] #865: SSHClient now requests the type of host key it has (e.g. from known_hosts) and does not consider a different type to be a “Missing” host key. This fixes a common case where an ECDSA key is in known_hosts and the server also has an RSA host key. Thanks to Pierce Lopez.

  • [Support] #974: Overhaul the codebase to be PEP-8, etc, compliant (i.e. passes the maintainer’s preferred flake8 configuration) and add a flake8 step to the Travis config. Big thanks to Dorian Pula!

  • [Support]: A big formatting pass to clean up an enormous number of invalid Sphinx reference links, discovered by switching to a modern, rigorous nitpicking doc-building mode.

  • [Support] #956: Switch code coverage service from coveralls.io to codecov.io (& then disable the latter’s auto-comments.) Thanks to Nikolai Røed Kristiansen for the patch.

2.0.6 2017-06-09

  • [Bug] #683: Make util.log_to_file append instead of replace. Thanks to @vlcinsky for the report.

  • [Bug] #949: SSHClient and Transport could cause a memory leak if there’s a connection problem or protocol error, even if Transport.close() is called. Thanks Kyle Agronick for the discovery and investigation, and Pierce Lopez for assistance.

  • [Bug] #794: (via #981) Prior support for ecdsa-sha2-nistp(384|521) algorithms didn’t fully extend to covering host keys, preventing connection to hosts which only offer these key types and no others. This is now fixed. Thanks to @ncoult and @kasdoe for reports and Pierce Lopez for the patch.

  • [Bug] #900: (via #911) Prefer newer ecdsa-sha2-nistp keys over RSA and DSA keys during host key selection. This improves compatibility with OpenSSH, both in terms of general behavior, and also re: ability to properly leverage OpenSSH-modified known_hosts files. Credit: @kasdoe for original report/PR and Pierce Lopez for the second draft.

  • [Bug] #667: The RC4/arcfour family of ciphers has been broken since version 2.0; but since the algorithm is now known to be completely insecure, we are opting to remove support outright instead of fixing it. Thanks to Alex Gaynor for catch & patch.

  • [Bug] #983: Move sha1 above the now-arguably-broken md5 in the list of preferred MAC algorithms, as an incremental security improvement for users whose target systems offer both. Credit: Pierce Lopez.

  • [Bug] #741: (also #809, #772; all via #912) Writing encrypted/password-protected private key files was silently broken since 2.0 due to an incorrect API call; this has been fixed.

    Includes a directly related fix, namely adding the ability to read AES-256-CBC ciphered private keys (which is now what we tend to write out as it is Cryptography’s default private key cipher.)

    Thanks to @virlos for the original report, Chris Harris and @ibuler for initial draft PRs, and @jhgorrell for the final patch.

  • [Bug] #971: Allow any type implementing the buffer API to be used with BufferedFile, Channel, and SFTPFile. This resolves a regression introduced in 1.13 with the Python 3 porting changes, when using types such as memoryview. Credit: Martin Packman.

  • [Bug] #984: Enhance default cipher preference order such that aes(192|256)-cbc are preferred over blowfish-cbc. Thanks to Alex Gaynor.

  • [Bug] #865: SSHClient now requests the type of host key it has (e.g. from known_hosts) and does not consider a different type to be a “Missing” host key. This fixes a common case where an ECDSA key is in known_hosts and the server also has an RSA host key. Thanks to Pierce Lopez.

  • [Support] #974: Overhaul the codebase to be PEP-8, etc, compliant (i.e. passes the maintainer’s preferred flake8 configuration) and add a flake8 step to the Travis config. Big thanks to Dorian Pula!

  • [Support]: A big formatting pass to clean up an enormous number of invalid Sphinx reference links, discovered by switching to a modern, rigorous nitpicking doc-building mode.

  • [Support] #956: Switch code coverage service from coveralls.io to codecov.io (& then disable the latter’s auto-comments.) Thanks to Nikolai Røed Kristiansen for the patch.

1.18.3 2017-06-09

  • [Bug] #683: Make util.log_to_file append instead of replace. Thanks to @vlcinsky for the report.
  • [Bug] #949: SSHClient and Transport could cause a memory leak if there’s a connection problem or protocol error, even if Transport.close() is called. Thanks Kyle Agronick for the discovery and investigation, and Pierce Lopez for assistance.
  • [Bug] #971: Allow any type implementing the buffer API to be used with BufferedFile, Channel, and SFTPFile. This resolves a regression introduced in 1.13 with the Python 3 porting changes, when using types such as memoryview. Credit: Martin Packman.

1.17.5 2017-06-09

  • [Bug] #683: Make util.log_to_file append instead of replace. Thanks to @vlcinsky for the report.
  • [Bug] #949: SSHClient and Transport could cause a memory leak if there’s a connection problem or protocol error, even if Transport.close() is called. Thanks Kyle Agronick for the discovery and investigation, and Pierce Lopez for assistance.
  • [Bug] #971: Allow any type implementing the buffer API to be used with BufferedFile, Channel, and SFTPFile. This resolves a regression introduced in 1.13 with the Python 3 porting changes, when using types such as memoryview. Credit: Martin Packman.

2.1.2 2017-02-20

  • [Bug] #895: Fix a bug in server-mode concerning multiple interactive auth steps (which were incorrectly responded to). Thanks to Dennis Kaarsemaker for catch & patch.
  • [Bug] #44: (via #891) SSHClient now gives its internal Transport a handle on itself, preventing garbage collection of the client until the session is closed. Without this, some code which returns stream or transport objects without the client that generated them, would result in premature session closure when the client was GCd. Credit: @w31rd0 for original report, Omer Anson for the patch.
  • [Bug] #862: (via #863) Avoid test suite exceptions on platforms lacking errno.ETIME (which seems to be some FreeBSD and some Windows environments.) Thanks to Sofian Brabez.
  • [Bug] #853: Tweak how RSAKey.__str__ behaves so it doesn’t cause TypeError under Python 3. Thanks to Francisco Couzo for the report.
  • [Support] #866: (also #838) Remove an old test-related file we don’t support, and add PyPy to Travis-CI config. Thanks to Pierce Lopez for the final patch and Pedro Rodrigues for an earlier edition.

2.0.5 2017-02-20

  • [Bug] #895: Fix a bug in server-mode concerning multiple interactive auth steps (which were incorrectly responded to). Thanks to Dennis Kaarsemaker for catch & patch.
  • [Bug] #44: (via #891) SSHClient now gives its internal Transport a handle on itself, preventing garbage collection of the client until the session is closed. Without this, some code which returns stream or transport objects without the client that generated them, would result in premature session closure when the client was GCd. Credit: @w31rd0 for original report, Omer Anson for the patch.
  • [Bug] #862: (via #863) Avoid test suite exceptions on platforms lacking errno.ETIME (which seems to be some FreeBSD and some Windows environments.) Thanks to Sofian Brabez.
  • [Bug] #853: Tweak how RSAKey.__str__ behaves so it doesn’t cause TypeError under Python 3. Thanks to Francisco Couzo for the report.
  • [Support] #866: (also #838) Remove an old test-related file we don’t support, and add PyPy to Travis-CI config. Thanks to Pierce Lopez for the final patch and Pedro Rodrigues for an earlier edition.

1.18.2 2017-02-20

  • [Bug] #895: Fix a bug in server-mode concerning multiple interactive auth steps (which were incorrectly responded to). Thanks to Dennis Kaarsemaker for catch & patch.
  • [Bug] #713: (via #714 and #889) Don’t pass initialization vectors to PyCrypto when dealing with counter-mode ciphers; newer PyCrypto versions throw an exception otherwise (older ones simply ignored this parameter altogether). Thanks to @jmh045000 for report & patches.
  • [Bug] #44: (via #891) SSHClient now gives its internal Transport a handle on itself, preventing garbage collection of the client until the session is closed. Without this, some code which returns stream or transport objects without the client that generated them, would result in premature session closure when the client was GCd. Credit: @w31rd0 for original report, Omer Anson for the patch.
  • [Bug] #862: (via #863) Avoid test suite exceptions on platforms lacking errno.ETIME (which seems to be some FreeBSD and some Windows environments.) Thanks to Sofian Brabez.
  • [Bug] #853: Tweak how RSAKey.__str__ behaves so it doesn’t cause TypeError under Python 3. Thanks to Francisco Couzo for the report.

1.17.4 2017-02-20

  • [Bug] #895: Fix a bug in server-mode concerning multiple interactive auth steps (which were incorrectly responded to). Thanks to Dennis Kaarsemaker for catch & patch.
  • [Bug] #713: (via #714 and #889) Don’t pass initialization vectors to PyCrypto when dealing with counter-mode ciphers; newer PyCrypto versions throw an exception otherwise (older ones simply ignored this parameter altogether). Thanks to @jmh045000 for report & patches.
  • [Bug] #44: (via #891) SSHClient now gives its internal Transport a handle on itself, preventing garbage collection of the client until the session is closed. Without this, some code which returns stream or transport objects without the client that generated them, would result in premature session closure when the client was GCd. Credit: @w31rd0 for original report, Omer Anson for the patch.
  • [Bug] #862: (via #863) Avoid test suite exceptions on platforms lacking errno.ETIME (which seems to be some FreeBSD and some Windows environments.) Thanks to Sofian Brabez.
  • [Bug] #853: Tweak how RSAKey.__str__ behaves so it doesn’t cause TypeError under Python 3. Thanks to Francisco Couzo for the report.

2.1.1 2016-12-12

  • [Bug] #859: (via #860) A tweak to the original patch implementing #398 was not fully applied, causing calls to invoke_shell to fail with AttributeError. This has been fixed. Patch credit: Kirk Byers.
  • [Bug]: Accidentally merged the new features from 1.18.0 into the 2.0.x bugfix-only branch. This included merging a bug in one of those new features (breaking invoke_shell with an AttributeError.) The offending code has been stripped out of the 2.0.x line (but of course, remains in 2.1.x and above.)
  • [Bug] #859: (via #860) A tweak to the original patch implementing #398 was not fully applied, causing calls to invoke_shell to fail with AttributeError. This has been fixed. Patch credit: Kirk Byers.

2.0.4 2016-12-12

  • [Bug] #859: (via #860) A tweak to the original patch implementing #398 was not fully applied, causing calls to invoke_shell to fail with AttributeError. This has been fixed. Patch credit: Kirk Byers.
  • [Bug]: Accidentally merged the new features from 1.18.0 into the 2.0.x bugfix-only branch. This included merging a bug in one of those new features (breaking invoke_shell with an AttributeError.) The offending code has been stripped out of the 2.0.x line (but of course, remains in 2.1.x and above.)
  • [Bug] #859: (via #860) A tweak to the original patch implementing #398 was not fully applied, causing calls to invoke_shell to fail with AttributeError. This has been fixed. Patch credit: Kirk Byers.

1.18.1 2016-12-12

  • [Bug] #859: (via #860) A tweak to the original patch implementing #398 was not fully applied, causing calls to invoke_shell to fail with AttributeError. This has been fixed. Patch credit: Kirk Byers.

2.1.0 2016-12-09

  • [Feature] #398: Add an environment dict argument to Client.exec_command (plus the lower level Channel.update_environment and Channel.set_environment_variable methods) which implements the env SSH message type. This means the remote shell environment can be set without the use of VARNAME=value shell tricks, provided the server’s AcceptEnv lists the variables you need to set. Thanks to Philip Lorenz for the pull request.
  • [Feature] #780: (also #779, and may help users affected by #520) Add an optional timeout parameter to Transport.start_client (and feed it the value of the configured connection timeout when used within SSHClient.) This helps prevent situations where network connectivity isn’t timing out, but the remote server is otherwise unable to service the connection in a timely manner. Credit to @sanseihappa.
  • [Support] #854: Fix incorrect docstring/param-list for Transport.auth_gssapi_keyex so it matches the real signature. Caught by @Score_Under.
  • [Support] #792: Minor updates to the README and demos; thanks to Alan Yee.
  • [Support] #801: Skip a Unix-only test when on Windows; thanks to Gabi Davar.

2.0.3 2016-12-09

  • [Bug] #681: Fix a Python3-specific bug re: the handling of read buffers when using ProxyCommand. Thanks to Paul Kapp for catch & patch.
  • [Bug] #334: Make the subprocess import in proxy.py lazy so users on platforms without it (such as Google App Engine) can import Paramiko successfully. (Relatedly, make it easier to tweak an active socket check timeout [in Transport] which was previously hardcoded.) Credit: Shinya Okano.
  • [Bug] #789: Add a missing .closed attribute (plus ._closed because reasons) to ProxyCommand so the earlier partial fix for #520 works in situations where one is gatewaying via ProxyCommand.
  • [Bug] #742: (also re: #559) Catch AssertionError thrown by Cryptography when attempting to load bad ECDSA keys, turning it into an SSHException. This moves the behavior in line with other “bad keys” situations, re: Paramiko’s main auth loop. Thanks to MengHuan Yu for the patch.
  • [Bug] #824: Fix the implementation of PKey.write_private_key_file (this method is only publicly defined on subclasses; the fix was in the private real implementation) so it passes the correct params to open(). This bug apparently went unnoticed and unfixed for 12 entire years. Congrats to John Villalovos for noticing & submitting the patch!
  • [Bug] #802: (via #804) Update our vendored Windows API module to address errors of the form AttributeError: 'module' object has no attribute 'c_ssize_t'. Credit to Jason R. Coombs.
  • [Support] #854: Fix incorrect docstring/param-list for Transport.auth_gssapi_keyex so it matches the real signature. Caught by @Score_Under.
  • [Support] #792: Minor updates to the README and demos; thanks to Alan Yee.
  • [Support] #801: Skip a Unix-only test when on Windows; thanks to Gabi Davar.

1.18.0 2016-12-09

  • [Feature] #398: Add an environment dict argument to Client.exec_command (plus the lower level Channel.update_environment and Channel.set_environment_variable methods) which implements the env SSH message type. This means the remote shell environment can be set without the use of VARNAME=value shell tricks, provided the server’s AcceptEnv lists the variables you need to set. Thanks to Philip Lorenz for the pull request.
  • [Feature] #780: (also #779, and may help users affected by #520) Add an optional timeout parameter to Transport.start_client (and feed it the value of the configured connection timeout when used within SSHClient.) This helps prevent situations where network connectivity isn’t timing out, but the remote server is otherwise unable to service the connection in a timely manner. Credit to @sanseihappa.
  • [Support] #819: Document how lacking gmp headers at install time can cause a significant performance hit if you build PyCrypto from source. (Most system-distributed packages already have this enabled.)
  • [Support] #854: Fix incorrect docstring/param-list for Transport.auth_gssapi_keyex so it matches the real signature. Caught by @Score_Under.
  • [Support] #792: Minor updates to the README and demos; thanks to Alan Yee.
  • [Support] #801: Skip a Unix-only test when on Windows; thanks to Gabi Davar.

1.17.3 2016-12-09

  • [Bug] #681: Fix a Python3-specific bug re: the handling of read buffers when using ProxyCommand. Thanks to Paul Kapp for catch & patch.
  • [Bug] #334: Make the subprocess import in proxy.py lazy so users on platforms without it (such as Google App Engine) can import Paramiko successfully. (Relatedly, make it easier to tweak an active socket check timeout [in Transport] which was previously hardcoded.) Credit: Shinya Okano.
  • [Bug] #789: Add a missing .closed attribute (plus ._closed because reasons) to ProxyCommand so the earlier partial fix for #520 works in situations where one is gatewaying via ProxyCommand.
  • [Bug] #824: Fix the implementation of PKey.write_private_key_file (this method is only publicly defined on subclasses; the fix was in the private real implementation) so it passes the correct params to open(). This bug apparently went unnoticed and unfixed for 12 entire years. Congrats to John Villalovos for noticing & submitting the patch!
  • [Bug] #802: (via #804) Update our vendored Windows API module to address errors of the form AttributeError: 'module' object has no attribute 'c_ssize_t'. Credit to Jason R. Coombs.
  • [Support] #819: Document how lacking gmp headers at install time can cause a significant performance hit if you build PyCrypto from source. (Most system-distributed packages already have this enabled.)
  • [Support] #854: Fix incorrect docstring/param-list for Transport.auth_gssapi_keyex so it matches the real signature. Caught by @Score_Under.
  • [Support] #792: Minor updates to the README and demos; thanks to Alan Yee.
  • [Support] #801: Skip a Unix-only test when on Windows; thanks to Gabi Davar.

2.0.2 2016-07-25

  • [Bug] #758: Apply type definitions to _winapi module from jaraco.windows 3.6.1. This should address issues on Windows platforms that often result in errors like ArgumentError: [...] int too long to convert. Thanks to @swohlerLL for the report and Jason R. Coombs for the patch.
  • [Bug] #774: Add a _closed private attribute to Channel objects so that they continue functioning when used as proxy sockets under Python 3 (e.g. as direct-tcpip gateways for other Paramiko connections.)
  • [Bug] #673: (via #681) Fix protocol banner read errors (SSHException) which would occasionally pop up when using ProxyCommand gatewaying. Thanks to @Depado for the initial report and Paul Kapp for the fix.

1.17.2 2016-07-25

  • [Bug] #758: Apply type definitions to _winapi module from jaraco.windows 3.6.1. This should address issues on Windows platforms that often result in errors like ArgumentError: [...] int too long to convert. Thanks to @swohlerLL for the report and Jason R. Coombs for the patch.
  • [Bug] #774: Add a _closed private attribute to Channel objects so that they continue functioning when used as proxy sockets under Python 3 (e.g. as direct-tcpip gateways for other Paramiko connections.)
  • [Bug] #673: (via #681) Fix protocol banner read errors (SSHException) which would occasionally pop up when using ProxyCommand gatewaying. Thanks to @Depado for the initial report and Paul Kapp for the fix.

1.16.3 2016-07-25

  • [Bug] #758: Apply type definitions to _winapi module from jaraco.windows 3.6.1. This should address issues on Windows platforms that often result in errors like ArgumentError: [...] int too long to convert. Thanks to @swohlerLL for the report and Jason R. Coombs for the patch.
  • [Bug] #774: Add a _closed private attribute to Channel objects so that they continue functioning when used as proxy sockets under Python 3 (e.g. as direct-tcpip gateways for other Paramiko connections.)
  • [Bug] #673: (via #681) Fix protocol banner read errors (SSHException) which would occasionally pop up when using ProxyCommand gatewaying. Thanks to @Depado for the initial report and Paul Kapp for the fix.

2.0.1 2016-06-21

  • [Bug] #537: Fix a bug in BufferedPipe.set_event which could cause deadlocks/hangs when one uses select.select against Channel objects (or otherwise calls Channel.fileno after the channel has closed). Thanks to Przemysław Strzelczak for the report & reproduction case, and to Krzysztof Rusek for the fix.
  • [Bug] #520: (Partial fix) Fix at least one instance of race condition driven threading hangs at end of the Python interpreter session. (Includes a docs update as well - always make sure to .close() your clients!)

1.17.1 2016-06-21

  • [Bug] #537: Fix a bug in BufferedPipe.set_event which could cause deadlocks/hangs when one uses select.select against Channel objects (or otherwise calls Channel.fileno after the channel has closed). Thanks to Przemysław Strzelczak for the report & reproduction case, and to Krzysztof Rusek for the fix.
  • [Bug] #520: (Partial fix) Fix at least one instance of race condition driven threading hangs at end of the Python interpreter session. (Includes a docs update as well - always make sure to .close() your clients!)

1.16.2 2016-06-21

  • [Bug] #537: Fix a bug in BufferedPipe.set_event which could cause deadlocks/hangs when one uses select.select against Channel objects (or otherwise calls Channel.fileno after the channel has closed). Thanks to Przemysław Strzelczak for the report & reproduction case, and to Krzysztof Rusek for the fix.
  • [Bug] #520: (Partial fix) Fix at least one instance of race condition driven threading hangs at end of the Python interpreter session. (Includes a docs update as well - always make sure to .close() your clients!)

2.0.0 2016-04-28

  • [Feature] #394: Replace PyCrypto with the Python Cryptographic Authority (PyCA) ‘Cryptography’ library suite. This improves security, installability, and performance; adds PyPy support; and much more.

    There aren’t enough ways to thank Alex Gaynor for all of his work on this, and then his patience while the maintainer let his PR grow moss for a year and change. Paul Kehrer came in with an assist, and I think I saw Olle Lundberg, @techtonik and @johnthagen supplying backup as well. Thanks to all!

    Warning

    This is a backwards incompatible change.

    However, it should only affect installation requirements; no API changes are intended or expected. Please report any such breakages as bugs.

    See our updated installation docs for details on what is now required to install Paramiko; many/most users should be able to simply pip install -U paramiko (especially if you upgrade to pip 8).

  • [Feature] #731: (working off the earlier #611) Add support for 384- and 512-bit elliptic curve groups in ECDSA key types (aka ecdsa-sha2-nistp384 / ecdsa-sha2-nistp521). Thanks to Michiel Tiller and @CrazyCasta for the patches.

1.17.0 2016-04-28

  • [Feature] #588: Add missing file-like object methods for BufferedFile and SFTPFile. Thanks to Adam Meily for the patch.
  • [Bug] #649: Update the module in charge of handling SSH moduli so it’s consistent with OpenSSH behavior re: prime number selection. Thanks to Damien Tournoud for catch & patch.
  • [Support] #636: Clean up and enhance the README (and rename it to README.rst from just README). Thanks to @LucasRMehl.
  • [Support] #697: Remove whitespace in our setup.py’s install_requires as it triggers occasional bugs in some versions of setuptools. Thanks to Justin Lecher for catch & original patch.
  • [Support] #612: Identify & work around a race condition in the test for handshake timeouts, which was causing frequent test failures for a subset of contributors as well as Travis-CI (usually, but not always, limited to Python 3.5). Props to Ed Kellett for assistance during some of the troubleshooting.
  • [Support] #621: Annotate some public attributes on Channel such as .closed. Thanks to Sergey Vasilyev for the report.
  • [Support] #729: Clean up setup.py to always use setuptools, not doing so was a historical artifact from bygone days. Thanks to Alex Gaynor.

1.16.1 2016-04-28

  • [Bug] #652: Fix behavior of gssapi-with-mic auth requests so they fail gracefully (allowing followup via other auth methods) instead of raising an exception. Patch courtesy of @jamercee.
  • [Bug] #499: Strip trailing/leading whitespace from lines when parsing SSH config files - this brings things in line with OpenSSH behavior. Thanks to Alfredo Esteban for the original report and Nick Pillitteri for the patch.
  • [Bug] #632: Fix logic bug in the SFTP client’s callback-calling functionality; previously there was a chance the given callback would fire twice at the end of a transfer. Thanks to @ab9-er for catch & original patch.
  • [Bug] #613: (via #619) Update to jaraco.windows 3.4.1 to fix some errors related to ctypes on Windows platforms. Credit to Jason R. Coombs.
  • [Bug] #617: (aka fabric/fabric#1429; via #679; related: #678, #685, #615 & #616) Fix up NoValidConnectionsError so it pickles correctly, and fix a related Python 3 compatibility issue. Thanks to Rebecca Schlussel for the report & Marius Gedminas for the patch.
  • [Bug] #716: Fix a Python 3 compatibility issue when handling two-factor authentication. Thanks to Mateusz Kowalski for the catch & original patch.
  • [Bug] #577: (via #578; should also fix #718, #560) Fix stalled/hung SFTP downloads by cleaning up some threading lock issues. Thanks to Stephen C. Pope for the patch.
  • [Bug] #676: (via #677) Fix a backwards incompatibility issue that cropped up in SFTPFile.prefetch re: the erroneously non-optional file_size parameter. Should only affect users who manually call prefetch. Thanks to @stevevanhooser for catch & patch.
  • [Bug] #670: Due to an earlier bugfix, less-specific Host blocks’ ProxyCommand values were overriding ProxyCommand none in more-specific Host blocks. This has been fixed in a backwards compatible manner (i.e. ProxyCommand none continues to appear as a total lack of any proxycommand key in parsed config structures). Thanks to Pat Brisbin for the catch.
  • [Support] #636: Clean up and enhance the README (and rename it to README.rst from just README). Thanks to @LucasRMehl.
  • [Support] #697: Remove whitespace in our setup.py’s install_requires as it triggers occasional bugs in some versions of setuptools. Thanks to Justin Lecher for catch & original patch.
  • [Support] #612: Identify & work around a race condition in the test for handshake timeouts, which was causing frequent test failures for a subset of contributors as well as Travis-CI (usually, but not always, limited to Python 3.5). Props to Ed Kellett for assistance during some of the troubleshooting.
  • [Support] #621: Annotate some public attributes on Channel such as .closed. Thanks to Sergey Vasilyev for the report.
  • [Support] #729: Clean up setup.py to always use setuptools, not doing so was a historical artifact from bygone days. Thanks to Alex Gaynor.

1.15.5 2016-04-28

  • [Bug] #401: Fix line number reporting in log output regarding invalid known_hosts line entries. Thanks to Dylan Thacker-Smith for catch & patch.
  • [Bug] #652: Fix behavior of gssapi-with-mic auth requests so they fail gracefully (allowing followup via other auth methods) instead of raising an exception. Patch courtesy of @jamercee.
  • [Bug] #499: Strip trailing/leading whitespace from lines when parsing SSH config files - this brings things in line with OpenSSH behavior. Thanks to Alfredo Esteban for the original report and Nick Pillitteri for the patch.
  • [Bug] #632: Fix logic bug in the SFTP client’s callback-calling functionality; previously there was a chance the given callback would fire twice at the end of a transfer. Thanks to @ab9-er for catch & original patch.
  • [Bug] #613: (via #619) Update to jaraco.windows 3.4.1 to fix some errors related to ctypes on Windows platforms. Credit to Jason R. Coombs.
  • [Bug] #617: (aka fabric/fabric#1429; via #679; related: #678, #685, #615 & #616) Fix up NoValidConnectionsError so it pickles correctly, and fix a related Python 3 compatibility issue. Thanks to Rebecca Schlussel for the report & Marius Gedminas for the patch.
  • [Bug] #716: Fix a Python 3 compatibility issue when handling two-factor authentication. Thanks to Mateusz Kowalski for the catch & original patch.
  • [Bug] #577: (via #578; should also fix #718, #560) Fix stalled/hung SFTP downloads by cleaning up some threading lock issues. Thanks to Stephen C. Pope for the patch.
  • [Bug] #676: (via #677) Fix a backwards incompatibility issue that cropped up in SFTPFile.prefetch re: the erroneously non-optional file_size parameter. Should only affect users who manually call prefetch. Thanks to @stevevanhooser for catch & patch.
  • [Bug] #670: Due to an earlier bugfix, less-specific Host blocks’ ProxyCommand values were overriding ProxyCommand none in more-specific Host blocks. This has been fixed in a backwards compatible manner (i.e. ProxyCommand none continues to appear as a total lack of any proxycommand key in parsed config structures). Thanks to Pat Brisbin for the catch.
  • [Support] #525: Update the vendored Windows API addon to a more recent edition. Also fixes #193, #488, #498. Thanks to Jason Coombs.
  • [Support] #636: Clean up and enhance the README (and rename it to README.rst from just README). Thanks to @LucasRMehl.
  • [Support] #697: Remove whitespace in our setup.py’s install_requires as it triggers occasional bugs in some versions of setuptools. Thanks to Justin Lecher for catch & original patch.
  • [Support] #612: Identify & work around a race condition in the test for handshake timeouts, which was causing frequent test failures for a subset of contributors as well as Travis-CI (usually, but not always, limited to Python 3.5). Props to Ed Kellett for assistance during some of the troubleshooting.
  • [Support] #621: Annotate some public attributes on Channel such as .closed. Thanks to Sergey Vasilyev for the report.
  • [Support] #729: Clean up setup.py to always use setuptools, not doing so was a historical artifact from bygone days. Thanks to Alex Gaynor.

1.16.0 2015-11-04

  • [Feature] #167: Add get_hostnames for easier introspection of a loaded SSH config file or object. Courtesy of Søren Løvborg.

  • [Feature] #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.

  • [Feature] #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

  • [Feature] #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.

  • [Bug] #22: 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.

  • [Bug] #502: 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.

  • [Bug] #194: (also #562, #530, #576) Streamline use of stat when downloading SFTP files via SFTPClient.get; this avoids triggering bugs in some off-spec SFTP servers such as IBM Sterling. Thanks to @muraleee for the initial report and to Torkil Gustavsen for the patch.

  • [Support] #419: Modernize a bunch of the codebase internals to leverage decorators. Props to @beckjake for realizing we’re no longer on Python 2.2 :D

  • [Support] #421: Modernize threading calls to use newer API. Thanks to Olle Lundberg.

  • [Support] #422: Clean up some unused imports. Courtesy of Olle Lundberg.

  • [Support] #431: Replace handrolled ssh_config parsing code with use of the shlex module. Thanks to Yan Kalchevskiy.

  • [Support] #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.

  • [Support] #516: Document AgentRequestHandler. Thanks to @toejough for report & suggestions.

  • [Support] #554: Fix inaccuracies in the docstring for the ECDSA key class. Thanks to Jared Hance for the patch.

  • [Support] #594: Correct some post-Python3-port docstrings to specify bytes type instead of str. Credit to @redixin.

  • [Support] #525: 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

  • [Bug] #565: Don’t explode with IndexError when reading private key files lacking an -----END <type> PRIVATE KEY----- footer. Patch courtesy of Prasanna Santhanam.
  • [Bug] #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.
  • [Bug] #366: Fix SFTPAttributes so its string representation doesn’t raise exceptions on empty/initialized instances. Patch by Ulrich Petri.
  • [Support] #594: Correct some post-Python3-port docstrings to specify bytes type instead of str. Credit to @redixin.

1.14.3 2015-11-02

  • [Bug] #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 AuthenticationException. Credit to Ken Jordan for the fix and Yvan Marques for original report.
  • [Bug] #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.
  • [Bug] #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.
  • [Bug] #404: Print details when displaying BadHostKeyException objects (expected vs received data) instead of just “hey shit broke”. Patch credit: Loic Dachary.
  • [Bug] #490: Skip invalid/unparseable lines in known_hosts files, instead of raising SSHException. This brings Paramiko’s behavior more in line with OpenSSH, which silently ignores such input. Catch & patch courtesy of Martin Topholm.
  • [Bug] #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.
  • [Bug] #565: Don’t explode with IndexError when reading private key files lacking an -----END <type> PRIVATE KEY----- footer. Patch courtesy of Prasanna Santhanam.
  • [Bug] #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.
  • [Bug] #366: Fix SFTPAttributes so its string representation doesn’t raise exceptions on empty/initialized instances. Patch by Ulrich Petri.
  • [Support] #516: Document AgentRequestHandler. Thanks to @toejough for report & suggestions.
  • [Support] #554: Fix inaccuracies in the docstring for the ECDSA key class. Thanks to Jared Hance for the patch.
  • [Support] #594: Correct some post-Python3-port docstrings to specify bytes type instead of str. Credit to @redixin.

1.13.4 2015-11-02

  • [Bug] #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 AuthenticationException. Credit to Ken Jordan for the fix and Yvan Marques for original report.
  • [Bug] #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.
  • [Bug] #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.
  • [Bug] #404: Print details when displaying BadHostKeyException objects (expected vs received data) instead of just “hey shit broke”. Patch credit: Loic Dachary.
  • [Bug] #490: Skip invalid/unparseable lines in known_hosts files, instead of raising SSHException. This brings Paramiko’s behavior more in line with OpenSSH, which silently ignores such input. Catch & patch courtesy of Martin Topholm.
  • [Bug] #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.
  • [Bug] #565: Don’t explode with IndexError when reading private key files lacking an -----END <type> PRIVATE KEY----- footer. Patch courtesy of Prasanna Santhanam.
  • [Bug] #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.
  • [Bug] #366: Fix SFTPAttributes so its string representation doesn’t raise exceptions on empty/initialized instances. Patch by Ulrich Petri.
  • [Support] #516: Document AgentRequestHandler. Thanks to @toejough for report & suggestions.
  • [Support] #554: Fix inaccuracies in the docstring for the ECDSA key class. Thanks to Jared Hance for the patch.
  • [Support] #594: Correct some post-Python3-port docstrings to specify bytes type instead of str. Credit to @redixin.

1.15.3 2015-10-02

  • [Bug] #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 AuthenticationException. Credit to Ken Jordan for the fix and Yvan Marques for original report.
  • [Bug] #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.
  • [Bug] #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.
  • [Bug] #404: Print details when displaying BadHostKeyException objects (expected vs received data) instead of just “hey shit broke”. Patch credit: Loic Dachary.
  • [Bug] #490: Skip invalid/unparseable lines in known_hosts files, instead of raising SSHException. This brings Paramiko’s behavior more in line with OpenSSH, which silently ignores such input. Catch & patch courtesy of Martin Topholm.
  • [Bug] #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.
  • [Bug] #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.
  • [Support] #516: Document AgentRequestHandler. Thanks to @toejough for report & suggestions.
  • [Support] #554: Fix inaccuracies in the docstring for the ECDSA key class. Thanks to Jared Hance for the patch.

1.15.2 2014-12-19

  • [Bug] #320: Update our win_pageant module to be Python 3 compatible. Thanks to @sherbang and @adamkerz for the patches.
  • [Bug] #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.
  • [Bug] #459: Tighten up agent connection closure behavior to avoid spurious ResourceWarning display in some situations. Thanks to @tkrapp for the catch.
  • [Bug] #266: Change numbering of 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.
  • [Bug] #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.
  • [Bug] #428: Fix an issue in BufferedFile (primarily used in the SFTP modules) concerning incorrect behavior by readlines on files whose size exceeds the buffer size. Thanks to @achapp for catch & patch.
  • [Bug] #455: Tweak packet size handling to conform better to the OpenSSH RFCs; this helps address issues with interactive program cursors. Courtesy of Jeff Quast.
  • [Bug] #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.
  • [Support] #419: Modernize a bunch of the codebase internals to leverage decorators. Props to @beckjake for realizing we’re no longer on Python 2.2 :D
  • [Support] #421: Modernize threading calls to use newer API. Thanks to Olle Lundberg.
  • [Support] #422: Clean up some unused imports. Courtesy of Olle Lundberg.
  • [Support] #431: Replace handrolled ssh_config parsing code with use of the shlex module. Thanks to Yan Kalchevskiy.

1.14.2 2014-12-19

  • [Bug] #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.
  • [Bug] #320: Update our win_pageant module to be Python 3 compatible. Thanks to @sherbang and @adamkerz for the patches.
  • [Bug] #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.
  • [Bug] #459: Tighten up agent connection closure behavior to avoid spurious ResourceWarning display in some situations. Thanks to @tkrapp for the catch.
  • [Bug] #266: Change numbering of 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.
  • [Bug] #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.
  • [Bug] #428: Fix an issue in BufferedFile (primarily used in the SFTP modules) concerning incorrect behavior by readlines on files whose size exceeds the buffer size. Thanks to @achapp for catch & patch.
  • [Bug] #455: Tweak packet size handling to conform better to the OpenSSH RFCs; this helps address issues with interactive program cursors. Courtesy of Jeff Quast.
  • [Bug] #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.
  • [Support] #249: Consolidate version information into one spot. Thanks to Gabi Davar for the reminder.
  • [Support] #378: Minor code cleanup in the SSH config module courtesy of Olle Lundberg.
  • [Support] #419: Modernize a bunch of the codebase internals to leverage decorators. Props to @beckjake for realizing we’re no longer on Python 2.2 :D
  • [Support] #421: Modernize threading calls to use newer API. Thanks to Olle Lundberg.
  • [Support] #422: Clean up some unused imports. Courtesy of Olle Lundberg.
  • [Support] #431: Replace handrolled ssh_config parsing code with use of the shlex module. Thanks to Yan Kalchevskiy.

1.13.3 2014-12-19

  • [Bug] #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.
  • [Bug] #320: Update our win_pageant module to be Python 3 compatible. Thanks to @sherbang and @adamkerz for the patches.
  • [Bug] #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.
  • [Bug] #459: Tighten up agent connection closure behavior to avoid spurious ResourceWarning display in some situations. Thanks to @tkrapp for the catch.
  • [Bug] #266: Change numbering of 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.
  • [Bug] #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.
  • [Bug] #428: Fix an issue in BufferedFile (primarily used in the SFTP modules) concerning incorrect behavior by readlines on files whose size exceeds the buffer size. Thanks to @achapp for catch & patch.
  • [Bug] #455: Tweak packet size handling to conform better to the OpenSSH RFCs; this helps address issues with interactive program cursors. Courtesy of Jeff Quast.
  • [Bug] #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.
  • [Support] #249: Consolidate version information into one spot. Thanks to Gabi Davar for the reminder.
  • [Support] #378: Minor code cleanup in the SSH config module courtesy of Olle Lundberg.
  • [Support] #419: Modernize a bunch of the codebase internals to leverage decorators. Props to @beckjake for realizing we’re no longer on Python 2.2 :D
  • [Support] #421: Modernize threading calls to use newer API. Thanks to Olle Lundberg.
  • [Support] #422: Clean up some unused imports. Courtesy of Olle Lundberg.
  • [Support] #431: Replace handrolled ssh_config parsing code with use of the shlex module. Thanks to Yan Kalchevskiy.

1.15.1 2014-09-22

  • [Bug] #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.

1.15.0 2014-09-18

  • [Feature] #131: Add a listdir_iter method to SFTPClient allowing for more efficient, async/generator based file listings. Thanks to John Begeman.

  • [Feature] #184: Support quoted values in SSH config file parsing. Credit to Yan Kalchevskiy.

  • [Feature] #218: Add support for ECDSA private keys on the client side. Thanks to @aszlig for the patch.

  • [Feature] #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.

  • [Feature] #362: Allow users to control the SSH banner timeout. Thanks to Cory Benfield.

  • [Feature] #267: (also #250, #241, #228) Add GSS-API / SSPI (e.g. Kerberos) key exchange and authentication support (installation docs here). 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.

  • [Bug] #335: Fix ECDSA key generation (generation of brand new ECDSA keys was broken previously). Thanks to @solarw for catch & patch.

  • [Bug] #234: Lower logging levels for a few overly-noisy log messages about secure channels. Thanks to David Pursehouse for noticing & contributing the fix.

  • [Bug] #298: 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.

  • [Bug] #373: 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.

  • [Bug] #346: 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.

  • [Support] #371: Add Travis support & docs update for Python 3.4. Thanks to Olle Lundberg.

  • [Support] #169: Minor refactor of paramiko.sftp_client.SFTPClient.put thanks to Abhinav Upadhyay.

  • [Support] #229: Fix a couple of incorrectly-copied docstrings’ .. versionadded:: RST directives. Thanks to Aarni Koskela for the catch.

  • [Support] #324: A bevvy of documentation typo fixes, courtesy of Roy Wellington.

  • [Support] #249: Consolidate version information into one spot. Thanks to Gabi Davar for the reminder.

  • [Support] #378: Minor code cleanup in the SSH config module courtesy of Olle Lundberg.

  • [Support] #377: Factor Channel openness sanity check into a decorator. Thanks to Olle Lundberg for original patch.

  • [Support] #374: (also #375) Old code cleanup courtesy of Olle Lundberg.

  • [Support] #393: Replace internal use of PyCrypto’s SHA.new with the stdlib’s hashlib.sha1. Thanks to Alex Gaynor.

1.14.1 2014-08-25

  • [Bug] #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.
  • [Bug] #239: Add Windows-style CRLF support to SSH config file parsing. Props to Christopher Swenson.
  • [Bug] #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.
  • [Bug] #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.
  • [Bug] #376: Be less aggressive about expanding variables in ssh_config files, which results in a speedup of SSH config parsing. Credit to Olle Lundberg.
  • [Support] #169: Minor refactor of paramiko.sftp_client.SFTPClient.put thanks to Abhinav Upadhyay.
  • [Support] #229: Fix a couple of incorrectly-copied docstrings’ .. versionadded:: RST directives. Thanks to Aarni Koskela for the catch.
  • [Support] #324: A bevvy of documentation typo fixes, courtesy of Roy Wellington.

1.13.2 2014-08-25

  • [Bug] #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.
  • [Bug] #239: Add Windows-style CRLF support to SSH config file parsing. Props to Christopher Swenson.
  • [Bug] #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.
  • [Bug] #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.
  • [Bug] #376: Be less aggressive about expanding variables in ssh_config files, which results in a speedup of SSH config parsing. Credit to Olle Lundberg.
  • [Support] #169: Minor refactor of paramiko.sftp_client.SFTPClient.put thanks to Abhinav Upadhyay.
  • [Support] #229: Fix a couple of incorrectly-copied docstrings’ .. versionadded:: RST directives. Thanks to Aarni Koskela for the catch.
  • [Support] #324: A bevvy of documentation typo fixes, courtesy of Roy Wellington.

1.14.0 2014-05-07

  • [Support] #284: Add Python language trove identifiers to setup.py. Thanks to Alex Gaynor for catch & patch.
  • [Support] #290: (also #292) Add support for building universal (Python 2+3 compatible) wheel files during the release process. Courtesy of Alex Gaynor.
  • [Support] #295: Swap out a bunch of PyCrypto hash functions with use of hashlib. Thanks to Alex Gaynor.
  • [Support] #297: Replace PyCrypto’s Random with os.urandom for improved speed and security. Thanks again to Alex.
  • [Support] #299: Use deterministic signatures for ECDSA keys for improved security. Thanks to Alex Gaynor.

1.13.1 2014-05-07

  • [Bug] #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.

  • [Bug] #308: Fix regression in dsskey.py that caused sporadic signature verification failures. Thanks to Chris Rose.

  • [Bug]: Fix logging error in sftp_client for filenames containing the ‘%’ character. Thanks to Antoine Brenner.

  • [Bug]: Added self.args for exception classes. Used for unpickling. Related to (Fabric #986, Fabric #714). Thanks to Alex Plugaru.

  • [Bug]: 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.

1.12.4 2014-05-07

  • [Bug] #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.

  • [Bug] #308: Fix regression in dsskey.py that caused sporadic signature verification failures. Thanks to Chris Rose.

  • [Bug]: Fix logging error in sftp_client for filenames containing the ‘%’ character. Thanks to Antoine Brenner.

  • [Bug]: Added self.args for exception classes. Used for unpickling. Related to (Fabric #986, Fabric #714). Thanks to Alex Plugaru.

  • [Bug]: 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.

1.11.6 2014-05-07

  • [Bug] #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.

  • [Bug] #308: Fix regression in dsskey.py that caused sporadic signature verification failures. Thanks to Chris Rose.

  • [Bug]: Fix logging error in sftp_client for filenames containing the ‘%’ character. Thanks to Antoine Brenner.

  • [Bug]: Added self.args for exception classes. Used for unpickling. Related to (Fabric #986, Fabric #714). Thanks to Alex Plugaru.

  • [Bug]: 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.

1.13.0 2014-03-13

  • [Feature] #58: Allow client code to access the stored SSH server banner via Transport.get_banner. Thanks to @Jhoanor for the patch.

  • [Feature] #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.

  • [Support] #256: 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.

1.12.3 2014-03-13

  • [Bug]: Use constant-time hash comparison operations where possible, to protect against timing-based attacks. Thanks to Alex Gaynor for the patch.
  • [Support] #256: 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.

1.11.5 2014-03-13

  • [Bug]: Use constant-time hash comparison operations where possible, to protect against timing-based attacks. Thanks to Alex Gaynor for the patch.
  • [Support] #256: 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.

1.10.7 2014-03-13

  • [Bug]: Use constant-time hash comparison operations where possible, to protect against timing-based attacks. Thanks to Alex Gaynor for the patch.
  • [Support] #256: 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.

1.12.2 2014-02-14

  • [Bug] #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.
  • [Bug] #34: (PR #35) Fix SFTP prefetching incompatibility with some SFTP servers regarding request/response ordering. Thanks to Richard Kettlewell.
  • [Bug] #268: Fix some missed renames of ProxyCommand related error classes. Thanks to Marius Gedminas for catch & patch.
  • [Bug] #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.

1.11.4 2014-02-14

  • [Bug] #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.
  • [Bug] #34: (PR #35) Fix SFTP prefetching incompatibility with some SFTP servers regarding request/response ordering. Thanks to Richard Kettlewell.
  • [Bug] #268: Fix some missed renames of ProxyCommand related error classes. Thanks to Marius Gedminas for catch & patch.
  • [Bug] #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.

1.10.6 2014-02-14

  • [Bug] #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.
  • [Bug] #34: (PR #35) Fix SFTP prefetching incompatibility with some SFTP servers regarding request/response ordering. Thanks to Richard Kettlewell.
  • [Bug] #268: Fix some missed renames of ProxyCommand related error classes. Thanks to Marius Gedminas for catch & patch.
  • [Bug] #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.

1.12.1 2014-01-08

  • [Bug] #176: Fix AttributeError bugs in known_hosts file (re)loading. Thanks to Nathan Scowcroft for the patch & Martin Blumenstingl for the initial test case.
  • [Bug] #225: Note ecdsa requirement in README. Thanks to Amaury Rodriguez for the catch.

1.11.3 2014-01-08

  • [Bug] #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.10.5 2014-01-08

  • [Bug] #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

  • [Feature] #136: Add server-side support for the SSH protocol’s ‘env’ command. Thanks to Benjamin Pollack for the patch.

  • [Feature] #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.

1.11.2 2013-09-27

  • [Bug] #199: Typo fix in the license header cross-project. Thanks to Armin Ronacher for catch & patch.
  • [Bug] #200: Fix an exception-causing typo in demo_simple.py. Thanks to Alex Buchanan for catch & Dave Foster for patch.
  • [Bug] #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.
  • [Bug] #156: 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.

1.10.4 2013-09-27

  • [Bug] #199: Typo fix in the license header cross-project. Thanks to Armin Ronacher for catch & patch.
  • [Bug] #200: Fix an exception-causing typo in demo_simple.py. Thanks to Alex Buchanan for catch & Dave Foster for patch.
  • [Bug] #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.

1.11.1 2013-09-20

  • [Bug] #168: Update config handling to properly handle multiple ‘localforward’ and ‘remoteforward’ keys. Thanks to Emre Yılmaz for the patch.
  • [Bug] #36: Fix the port-forwarding demo to avoid file descriptor errors. Thanks to Jonathan Halcrow for catch & patch.
  • [Bug] #162: Clean up HMAC module import to avoid deadlocks in certain uses of SSHClient. Thanks to Gernot Hillier for the catch & suggested fix.

1.10.3 2013-09-20

  • [Bug] #168: Update config handling to properly handle multiple ‘localforward’ and ‘remoteforward’ keys. Thanks to Emre Yılmaz for the patch.
  • [Bug] #36: Fix the port-forwarding demo to avoid file descriptor errors. Thanks to Jonathan Halcrow for catch & patch.
  • [Bug] #162: Clean up HMAC module import to avoid deadlocks in certain uses of SSHClient. Thanks to Gernot Hillier for the catch & suggested fix.

1.11.0 2013-07-26

  • [Bug] #87: 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.
  • [Bug] #98: 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.
  • [Support] #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.

1.10.2 2013-07-26

  • [Bug] #146: Indentation fixes for readability. Thanks to Abhinav Upadhyay for catch & patch.
  • [Bug] #153: (also #67) Warn on parse failure when reading known_hosts file. Thanks to @glasserc for patch.

1.10.1 2013-04-05

  • [Bug] #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.
  • [Bug] #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.

1.10.0 2013-03-01

  • [Feature] #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.
  • [Feature] #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.
  • [Feature] #71: Add SFTPClient.putfo and .getfo methods to allow direct uploading/downloading of file-like objects. Thanks to Eric Buehl for the patch.
  • [Feature] #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.
  • [Feature] #116: Limit Message.get_bytes to an upper bound of 1MB to protect against potential DoS vectors. Thanks to @mvschaik for catch & patch.
  • [Feature] #127: Turn SFTPFile into a context manager. Thanks to Michael Williamson for the patch.
  • [Feature] #128: Defer FQDN resolution until needed, when parsing SSH config files. Thanks to Parantapa Bhattacharya for catch & patch.
  • [Feature] #110: Honor SSH config AddressFamily setting when looking up local host’s FQDN. Thanks to John Hensley for the patch.
  • [Feature] #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.
  • [Feature] #66: Batch SFTP writes to help speed up file transfers. Thanks to Olle Lundberg for the patch.
  • [Bug] #102: 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.
  • [Bug] #133: 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.
  • [Support] #94: Remove duplication of SSH port constant. Thanks to Olle Lundberg for the catch.

Very Old Changelog

Moved here from “NEWS” in the repo root.

Issues noted as just #NN can be found at https://github.com/paramiko/pramiko/.

Issues noted as “‘ssh’ #NN” can be found at https://github.com/bitprophet/ssh/.

Issues noted as “Fabric #NN” can be found at https://github.com/fabric/fabric/.

1.9.0 2012-11-06

  • #97 (with a little #93): Improve config parsing of ProxyCommand directives and provide a wrapper class to allow subprocess-driven proxy commands to be used as sock= arguments for SSHClient.connect.
  • #77: Allow SSHClient.connect() to take an explicit sock parameter overriding creation of an internal, implicit socket object.
  • Thanks in no particular order to Erwin Bolwidt, Oskari Saarenmaa, Steven Noonan, Vladimir Lazarenko, Lincoln de Sousa, Valentino Volonghi, Olle Lundberg, and Github user @acrish for the various and sundry patches leading to the above changes.

1.8.1 2012-11-06

  • #90: Ensure that callbacks handed to SFTPClient.get() always fire at least once, even for zero-length files downloaded. Thanks to Github user @enB for the catch.
  • #85: Paramiko’s test suite overrides unittest.TestCase.assertTrue/assertFalse to provide these modern assertions to Python 2.2/2.3, which lacked them. However on newer Pythons such as 2.7, this now causes deprecation warnings. The overrides have been patched to only execute when necessary. Thanks to @Arfrever for catch & patch.

1.8.0 2012-10-03

  • #17 (‘ssh’ 28): Fix spurious “NoneType has no attribute ‘error’” and similar exceptions that crop up on interpreter exit.
  • ‘ssh’ 32: Raise a more useful error explaining which known_hosts key line was problematic, when encountering binascii issues decoding known host keys. Thanks to @thomasvs for catch & patch.
  • ‘ssh’ 33: Bring ssh_config parsing more in line with OpenSSH spec, re: order of setting overrides by Host specifiers. Specifically, the overrides now go by file order instead of automatically sorting by Host value length. In addition, the first value found per config key (e.g. Port, User etc) wins, instead of the last. Thanks to Jan Brauer for the contribution.
  • ‘ssh’ 36: Support new server two-factor authentication option (RequiredAuthentications2), at least re: combining key-based & password auth. Thanks to Github user @bninja.
  • ‘ssh’ 11: When raising an exception for hosts not listed in known_hosts (when RejectPolicy is in effect) the exception message was confusing/vague. This has been improved somewhat. Thanks to Cal Leeming for highlighting the issue.
  • ‘ssh’ 40: Fixed up & expanded EINTR signal handling. Thanks to Douglas Turk.
  • ‘ssh’ 15: Implemented parameter substitution in SSHConfig, matching the implementation of ssh_config(5). Thanks to Olle Lundberg for the patch.
  • ‘ssh’ 24: Switch some internal type checking to use isinstance to help prevent problems with client libraries using subclasses of builtin types. Thanks to Alex Morega for the patch.
  • Fabric #562: Agent forwarding would error out (with “Authentication response too long”) or freeze, when more than one remote connection to the local agent was active at the same time. This has been fixed. Thanks to Steven McDonald for assisting in troubleshooting/patching, and to GitHub user @lynxis for providing the final version of the patch.
  • ‘ssh’ 5: Moved a fcntl import closer to where it’s used to help avoid ImportError problems on Windows platforms. Thanks to Jason Coombs for the catch + suggested fix.
  • ‘ssh’ 4: Updated implementation of WinPageant integration to work on 64-bit Windows. Thanks again to Jason Coombs for the patch.
  • Added an IO loop sleep() call to avoid needless CPU usage when agent forwarding is in use.
  • Handful of internal tweaks to version number storage.
  • Updated setup.py with ==dev install URL for pip users.
  • Updated setup.py to account for packaging problems in PyCrypto 2.4.0
  • Added an extra atfork() call to help prevent spurious RNG errors when running under high parallel (multiprocess) load.
  • Merge PR #28: https://github.com/paramiko/paramiko/pull/28 which adds a ssh-keygen like demo module. (Sofian Brabez)

1.7.7.2 2012-05-16

1.7.7.1 2011-05-21 (George)

  • Make the verification phase of SFTP.put optional (Larry Wright)
  • Patches to fix AIX support (anonymous)
  • Patch from Michele Bertoldi to allow compression to be turned on in the client constructor.
  • Patch from Shad Sharma to raise an exception if the transport isn’t active when you try to open a new channel.
  • Stop leaking file descriptors in the SSH agent (John Adams)
  • More fixes for Windows address family support (Andrew Bennetts)
  • Use Crypto.Random rather than Crypto.Util.RandomPool (Gary van der Merwe, #271791)
  • Support for openssl keys (tehfink)
  • Fix multi-process support by calling Random.atfork (sugarc0de)

1.7.6 2009-11-01 (Fanny)

  • fixed bugs 411099 (sftp chdir isn’t unicode-safe), 363163 & 411910 (more IPv6 problems on windows), 413850 (race when server closes the channel), 426925 (support port numbers in host keys)

1.7.5 2009-07-19 (Ernest)

  • added support for ARC4 cipher and CTR block chaining (Denis Bernard)
  • made transport threads daemonize, to fix python 2.6 atexit behavior
  • support unicode hostnames, and IP6 addresses (Maxime Ripard, Shikhar Bhushan)
  • various small bug fixes

1.7.4 2008-07-06 (Desmond)

  • more randpool fixes for windows, from Dwayne Litzenberger (NOTE: this may require a pycrypto upgrade on windows)
  • fix potential deadlock during key exchange (Dwayne Litzenberger)
  • remove MFC dependency from windows (Mark Hammond)
  • added some optional API improvements for SFTPClient get() and put()

1.7.3 2008-03-23 (Clara)

  • SSHClient can be asked not to use an SSH agent now, and not to search for private keys
  • added WarningPolicy option for SSHClient (warn, but allow, on unknown server keys)
  • added Channel.exit_status_ready to poll if a channel has received an exit status yet
  • new demo for reverse port forwarding
  • (bug 177117) fix UTF-8 passwords
  • (bug 189466) fix typo in osrandom.py
  • (bug 191657) potentially fix a race at channel shutdown
  • (bug 192749) document that SSHClient.connect may raise socket.error
  • (bug 193779) translate EOFError into AuthException during authentication
  • (bug 200416) don’t create a new logger object for each channel

1.7.2 2008-01-21 (Basil)

  • (bug 137219) catch EINTR and handle correctly
  • (bug 157205) fix select() to trigger on stderr for a channel too
  • added SSHClient.get_transport()
  • added Channel.send_ready()
  • added direct-tcpip forwarding [patch from david guerizec]
  • fixed the PRNG to be more secure on windows and in cases where fork() is called [patch from dwayne litzenberger]

1.7.1 2007-06-10 (Amy)

  • windows SSH agent support can use the ‘ctypes’ module now if ‘win32all’ is not available [patch from alexander belchenko]
  • SFTPClient.listdir_attr() now preserves the ‘longname’ field [patch from wesley augur]
  • SFTPClient.get_channel() API added
  • SSHClient constuctor takes an optional ‘timeout’ parameter [patch from james bardin]

1.7 2007-02-18 (zubat)

  • added x11 channel support (patch from david guerizec)
  • added reverse port forwarding support
  • (bug 75370) raise an exception when contacting a broken SFTP server
  • (bug 80295) SSHClient shouldn’t expand the user directory twice when reading RSA/DSS keys
  • (bug 82383) typo in DSS key in SSHClient
  • (bug 83523) python 2.5 warning when encoding a file’s modification time
  • if connecting to an SSH agent fails, silently fallback instead of raising an exception

1.6.4 2006-11-19 (yanma)

  • fix setup.py on osx (oops!)
  • (bug 69330) check for the existence of RSA/DSA keys before trying to open them in SFTPClient
  • (bug 69222) catch EAGAIN in socket code to workaround a bug in recent Linux 2.6 kernels
  • (bug 70398) improve dict emulation in HostKeys objects
  • try harder to make sure all worker threads are joined on Transport.close()

1.6.3 2006-10-14 (xatu)

  • fixed bug where HostKeys.__setitem__ wouldn’t always do the right thing
  • fixed bug in SFTPClient.chdir and SFTPAttributes.__str__ [patch from mike barber]
  • try harder not to raise EOFError from within SFTPClient
  • fixed bug where a thread waiting in accept() could block forever if the transport dies [patch from mike looijmans]

1.6.2 2006-08-16 (weedle)

  • added support for “old” group-exchange server mode, for compatibility with the windows putty client
  • fixed some more interactions with SFTP file readv() and prefetch()
  • when saving the known_hosts file, preserve the original order [patch from warren young]
  • fix a couple of broken lines when exporting classes (bug 55946)

1.6.1 2006-07-10 (vulpix)

  • more unit tests fixed for windows/cygwin (thanks to alexander belchenko)
  • a couple of fixes related to exceptions leaking out of SFTPClient
  • added ability to set items in HostKeys via __setitem__
  • HostKeys now retains order and has a save() method
  • added PKey.write_private_key and PKey.from_private_key

1.6 2006-05-10 (umbreon)

  • pageant support on Windows thanks to john arbash meinel and todd whiteman
  • fixed unit tests to work under windows and cygwin (thanks to alexander belchenko for debugging)
  • various bugfixes/tweaks to SFTP file prefetch
  • added SSHClient for a higher-level API
  • SFTP readv() now yields results as it gets them
  • several APIs changed to throw an exception instead of “False” on failure

1.5.4 2006-03-11 (tentacool)

  • fixed HostKeys to more correctly emulate a python dict
  • fixed a bug where file read buffering was too aggressive
  • improved prefetching so that out-of-order reads still use the prefetch buffer
  • added experimental SFTPFile.readv() call
  • more unit tests

1.5.3 2006-02-19 (squirtle)

  • a few performance enhancements
  • added HostKeys, for dealing with openssh style “known_hosts” files, and added support for hashed hostnames
  • added Transport.atfork() for dealing with forked children
  • added SFTPClient.truncate, SFTPFile.chmod, SFTPFile.chown, SFTPFile.utime, and SFTPFile.truncate
  • improved windows demos [patch from mike looijmans], added an sftp demo, and moved demos to the demos/ folder
  • fixed a few interoperability bugs
  • cleaned up logging a bit
  • fixed a bug where EOF on a Channel might not be detected by select [found by thomas steinacher]
  • fixed python 2.4-ism that crept in [patch by jan hudec]
  • fixed a few reference loops that could have interacted badly with the python garbage collector
  • fixed a bunch of pychecker warnings, some of which were bugs

1.5.2 2005-12-04 (rhydon)

  • compression support (opt-in via Transport.use_compression)
  • sftp files may be opened with mode flag ‘x’ for O_EXCL (exclusive-open) behavior, which has no direct python equivalent
  • added experimental util functions for parsing openssh config files
  • fixed a few bugs (and potential deadlocks) with key renegotiation
  • fixed a bug that caused SFTPFile.prefetch to occasionally lock up
  • fixed an sftp bug which affected van dyke sftp servers
  • fixed the behavior of select()ing on a closed channel, such that it will always trigger as readable

1.5.1 2005-10-31 (quilava)

  • SFTPFile.prefetch() added to dramatically speed up downloads (automatically turned on in SFTPClient.get())
  • fixed bug where garbage-collected Channels could trigger the Transport to close the session (reported by gordon good)
  • fixed a deadlock in rekeying (reported by wendell wood)
  • fixed some windows bugs and SFTPAttributes.__str__() (reported by grzegorz makarewicz)
  • better sftp error reporting by adding fake “errno” info to IOErrors

1.5 2005-10-02 (paras)

  • added support for “keyboard-interactive” authentication
  • added mode (on by default) where password authentication will try to fallback to “keyboard-interactive” if it’s supported
  • added pipelining to SFTPFile.write and SFTPClient.put
  • fixed bug with SFTPFile.close() not guarding against being called more than once (thanks to Nathaniel Smith)
  • fixed broken ‘a’ flag in SFTPClient.file() (thanks to Nathaniel Smith)
  • fixed up epydocs to look nicer
  • reorganized auth_transport into auth_handler, which seems to be a cleaner separation
  • demo scripts fixed to have a better chance of loading the host keys correctly on windows/cygwin

1.4 2005-07-17 (oddish)

  • added SSH-agent support (for posix) from john rochester
  • added chdir() and getcwd() to SFTPClient, to emulate a “working directory”
  • added get() and put() to SFTPClient, to emulate ftp whole-file transfers
  • added check() to SFTPFile (a file hashing protocol extension)
  • fixed Channels and SFTPFiles (among others) to auto-close when GC’d
  • fixed Channel.fileno() for Windows, this time really
  • don’t log socket errors as “unknown exception”
  • some misc. backward-compatible API improvements (like allowing Transport.start_client() and start_server() to be called in a blocking way)

1.3.1 2005-06-28 (nidoran)

  • added SFTPClient.close()
  • fixed up some outdated documentation
  • made SFTPClient.file() an alias for open()
  • added Transport.open_sftp_client() for convenience
  • refactored packetizing out of Transport
  • fixed bug (reported by alain s.) where connecting to a non-SSH host could cause paramiko to freeze up
  • fixed Channel.fileno() for Windows (again)
  • some more unit tests

1.3 2005-04-09 (marowak)

  • fixed a bug where packets larger than about 12KB would cause the session to die on all platforms except osx
  • added a potential workaround for windows to let Channel.fileno() (and therefore the select module) work!
  • changed API for subsystem handlers (sorry!) to pass more info and make it easier to write a functional SFTP server

1.2 2005-02-28 (lapras)

  • added SFTPClient.listdir_attr() for fetching a list of files and their attributes in one call
  • added Channel.recv_exit_status() and Channel.send_exit_status() for manipulating the exit status of a command from either client or server mode
  • moved check_global_request into ServerInterface, where it should’ve been all along (oops)
  • SFTPHandle’s default implementations are fleshed out more
  • made logging a bit more consistent, and started logging thread ids
  • fixed a few race conditions, one of which would sometimes cause a Transport to fail to start on slow machines
  • more unit tests

1.1 2004-12-12 (kabuto)

  • server-side SFTP support
  • added support for stderr streams on client & server channels
  • added a new distinct exception for failed client authentication when caused by the server rejecting that type of auth
  • added support for multi-part authentication
  • fixed bug where get_username() wasn’t working in server mode

1.0 2004-11-06 (jigglypuff)

  • fixed bug that broke server-mode authentication by private key
  • fixed bug where closing a Channel could end up killing the entire Transport
  • actually include demo_windows.py this time (oops!)
  • fixed recently-introduced bug in group-exchange key negotiation that would generate the wrong hash (and therefore fail the initial handshake)
  • server-mode subsystem handler is a bit more flexible

0.9 2004-10-22 (ivysaur)

  • new ServerInterface class for implementing server policy, so it’s no longer necessary to subclass Transport or Channel – server code will need to be updated to follow this new API! (see demo_server.py)
  • some bugfixes for re-keying an active session
  • Transport.get_security_options() allows fine-tuned control over the crypto negotiation on a new session
  • Transport.connect() takes a single hostkey object now instead of two string parameters
  • the Channel request methods (like ‘exec_command’) now return True on success or False on failure
  • added a mechanism for providing subsystems in server mode (and a new class to be subclassed: SubsystemHandler)
  • renamed SFTP -> SFTPClient (but left an alias for existing code)
  • added SFTPClient.normalize() to resolve paths on the server
  • fleshed out the API a bit more for SFTPClient and private keys
  • a bunch of new unit tests!

0.9 2004-06-27 (horsea)

  • fixed a lockup that could happen if the channel was closed while the send window was full
  • better checking of maximum packet sizes
  • better line buffering for file objects
  • now chops sftp requests into smaller packets for some older servers
  • more sftp unit tests

0.9 2004-05-31 (gyarados)

  • Transport.open_channel() – supports local & remote port forwarding now
  • now imports UTF-8 encodings explicitly as a hint to “freeze” utilities
  • no longer rejects older SFTP servers
  • default packet size bumped to 8kB
  • fixed deadlock in closing a channel
  • Transport.connect() – fixed bug where it would always fail when given a host key to verify

0.9 2004-04-23 (fearow)

  • Transport.send_ignore() – send random ignored bytes
  • RSAKey/DSSKey added from_private_key_file() as a factory constructor; write_private_key_file() & generate() to create and save ssh2 keys; get_base64() to retrieve the exported public key
  • Transport added global_request() [client] and check_global_request() [server]
  • Transport.get_remote_server_key() now returns a PKey object instead of a tuple of strings
  • Transport.get_username() – return the username you auth’d as [client]
  • Transport.set_keepalive() – makes paramiko send periodic junk packets to the remote host, to keep the session active
  • python 2.2 support (thanks to Roger Binns)
  • misc. bug fixes