| 1 |
========= |
| 2 |
Changelog |
| 3 |
========= |
| 4 |
|
| 5 |
- :release:`5.0.0 <2026-05-09>` |
| 6 |
- :bug:`- major` Fix `Ed25519Key <paramiko.ed25519key.Ed25519Key>`'s internals |
| 7 |
such that it no longer throws `AttributeError` during calls to ``__repr__`` |
| 8 |
when only partly initialized. This isn't a normal runtime problem (it only |
| 9 |
happens inside error handling for fatal errors like "not a valid private |
| 10 |
key") but was perennially complicating test failure diagnosis and similar |
| 11 |
scenarios. |
| 12 |
- :support:`-` The `PKey <paramiko.pkey.PKey>` class family tree reorganized |
| 13 |
the ``write_private_key`` and ``write_private_key_file`` methods; with other |
| 14 |
recent changes, having individual implementations on the child classes made |
| 15 |
no sense, so key writing is now implemented in `PKey <paramiko.pkey.PKey>` |
| 16 |
itself and the included child classes such as `ECDSAKey |
| 17 |
<paramiko.ecdsakey.ECDSAKey>` no longer define their own such methods, |
| 18 |
instead simply exposing their underlying cryptographic private key objects as |
| 19 |
``.private_key``. |
| 20 |
- :feature:`-` Added a new, optional ``file_format`` keyword argument to |
| 21 |
`PKey.write_private_key <paramiko.pkey.PKey.write_private_key>` and |
| 22 |
`PKey.write_private_key_file <paramiko.pkey.PKey.write_private_key_file>` to |
| 23 |
allow writing out OpenSSH-style private key files in addition to the legacy |
| 24 |
PEM format. |
| 25 |
|
| 26 |
.. warning:: |
| 27 |
While the default format remains PEM in Paramiko 5, future major releases |
| 28 |
are likely to change that default to the OpenSSH format. We recommend |
| 29 |
updating any key-writing code you have to be explicit now, to insulate |
| 30 |
yourself from such an update. |
| 31 |
|
| 32 |
- :support:`-` Raised the minimum modulus size in |
| 33 |
``diffie-hellman-group-exchange-sha256`` key exchange from 1024 (the original |
| 34 |
spec's minimum) to 2048 (the contemporary minimum according to :rfc:`9142`, |
| 35 |
and matching a similar change by OpenSSH ten years ago in 7.2 / 2016). |
| 36 |
|
| 37 |
.. warning:: |
| 38 |
This change may be backwards incompatible if you were targeting servers |
| 39 |
supporting *only* this kex method and whose own maximum modulus size for |
| 40 |
group-exchange was lower than 2048. |
| 41 |
|
| 42 |
- :support:`-` Removed GSSAPI support, as the current (buggy, no longer easily |
| 43 |
testable in CI, poorly understood and not used by the core team) |
| 44 |
implementation is SHA-1 based and no SHA-256 upgrade appeared to be |
| 45 |
forthcoming from contributors. |
| 46 |
|
| 47 |
We don't like removing functionality, but this feature has been on the rocks |
| 48 |
for years and it makes sense to remove it as an insecure support burden. We |
| 49 |
will definitely consider merging a SHA256-based replacement in the future if |
| 50 |
a high-quality one appears. |
| 51 |
|
| 52 |
Side note: the GSS related constants in ``paramiko/common.py`` have been left |
| 53 |
in place as they are essentially mapping out known protocol numbers. |
| 54 |
|
| 55 |
.. warning:: This change is backwards incompatible if you require GSS. |
| 56 |
|
| 57 |
- :support:`-` Removed support for key exchange using SHA-1, meaning the kex |
| 58 |
methods ``diffie-hellman-group-exchange-sha1``, |
| 59 |
``diffie-hellman-group14-sha1``, and ``diffie-hellman-group1-sha1`` are now |
| 60 |
gone. Implementing classes have been removed/merged/shuffled as required. |
| 61 |
|
| 62 |
.. warning:: |
| 63 |
This change is backwards incompatible if you were still supporting old |
| 64 |
systems that don't implement sha256/sha512 DH kex (or ECDH kex). |
| 65 |
|
| 66 |
- :support:`-` Removed support for verifying/signing with RSA keys using SHA-1 |
| 67 |
hashing. Generally, this means most cases where ``"ssh-rsa"`` was used as an |
| 68 |
algorithm identifier (as opposed to a key material identifier) will no longer |
| 69 |
accept that string as valid, and the relevant code that actually used eg |
| 70 |
`hashes.SHA1` no longer does. |
| 71 |
|
| 72 |
.. warning:: |
| 73 |
This change is backwards incompatible if you are stuck supporting legacy |
| 74 |
systems with Paramiko that are unable to use SHA2-based signatures with RSA |
| 75 |
keys (or other workarounds, such as switching from RSA keys to Ed25519 |
| 76 |
ones). |
| 77 |
|
| 78 |
- :bug:`- major` Added a ``password`` kwarg to `PKey.from_type_string |
| 79 |
<paramiko.pkey.PKey.from_type_string>` so it can handle encrypted keys like |
| 80 |
most other PKey constructors already could. |
| 81 |
- :support:`-` Renamed `PKey.from_path <paramiko.pkey.PKey.from_path>`'s |
| 82 |
``passphrase`` argument to ``password`` so it's consistent with all the other |
| 83 |
methods of instantiating PKey objects. |
| 84 |
|
| 85 |
.. warning:: |
| 86 |
This change is backwards incompatible if you were using this relatively |
| 87 |
new constructor + were doing so to load encrypted keys. |
| 88 |
|
| 89 |
- :support:`-` Removed the ``demos/`` folder; they've become too big a support |
| 90 |
burden and we've wanted to remove them for years. |
| 91 |
|
| 92 |
Users who enjoyed the client-side demos should look at our wrapper library, |
| 93 |
`Fabric <https://fabfile.org>`_. |
| 94 |
|
| 95 |
We suspect the most-used demo was ``demos/demo-server.py`` and may consider |
| 96 |
adding a variant of it to the actual Python package in future. |
| 97 |
|
| 98 |
- :release:`4.0.0 <2025-08-03>` |
| 99 |
- :support:`-` Administrivia update: |
| 100 |
|
| 101 |
- dropped support for Python <3.9 |
| 102 |
- migrated packaging metadata and practices to use ``pyproject.toml`` |
| 103 |
- removed the now-vestigial ``ed25519`` packaging 'extra' (support for this |
| 104 |
hasn't required additional dependencies in a number of releases now, just |
| 105 |
the core ones) |
| 106 |
- moved Invoke requirement to core dependencies, and removed |
| 107 |
``paramiko[invoke]`` from extras |
| 108 |
- with those two changes, ``paramiko[all]`` becomes much less useful, and has |
| 109 |
itself been axed |
| 110 |
- removed the very old and wizened ``setup_helper.py`` which was only needed |
| 111 |
on ancient (for this century) versions of macOS. |
| 112 |
- removed ``paramiko.__all__``, as it was redundant (guessing it dated back |
| 113 |
to some *very* old Python versions; anyone using ``import *`` these days - |
| 114 |
shame! - should still be fine as we never *had* any 'private' members in |
| 115 |
``__all__`` and AFAICT that was the only reason ever to use it in the first |
| 116 |
place (as ``import *`` skips names like ``_private``). |
| 117 |
|
| 118 |
- :support:`973` Removed support for the DSA (aka DSS) key algorithm, as it has |
| 119 |
been badly outdated and insecure for a decade or more at this point, and was |
| 120 |
recently completely removed from OpenSSH as well. |
| 121 |
|
| 122 |
If you were still using DSA out of sheer inertia: we strongly recommend |
| 123 |
upgrading to Ed25519 (or maybe ECDSA). |
| 124 |
|
| 125 |
If you were still using DSA because of target hosts you do not control: |
| 126 |
please continue using Paramiko 3.x. |
| 127 |
- :release:`3.5.1 <2025-02-03>` |
| 128 |
- :bug:`2490` Private key material is now explicitly 'unpadded' during |
| 129 |
decryption, removing a reliance on some lax OpenSSL behavior & making us |
| 130 |
compatible with future Cryptography releases. Patch courtesy of Alex Gaynor. |
| 131 |
- :release:`3.5.0 <2024-09-15>` |
| 132 |
- :feature:`982` (via :issue:`2444`, which was a rebase of :issue:`2157`) Add |
| 133 |
support for AES-GCM encryption ciphers (128 and 256 bit variants). Thanks to |
| 134 |
Alex Gaynor for the report (& for cryptography review), Shen Cheng for the |
| 135 |
original PR, and Chris Mason for the updated PR; plus as usual to everyone |
| 136 |
who tested the patches and reported their results! |
| 137 |
|
| 138 |
This functionality has been tested in client mode against OpenSSH 9.0, 9.2, |
| 139 |
and 9.6, as well as against a number of proprietary appliance SSH servers. |
| 140 |
- :bug:`-` Check for ``None`` transport members inside |
| 141 |
`~paramiko.channel.Channel` when closing the channel; this likely doesn't |
| 142 |
come up much in the real world, but was causing warnings in the test suite. |
| 143 |
- :release:`3.4.1 <2024-08-11>` |
| 144 |
- :release:`3.3.2 <2024-08-11>` |
| 145 |
- :bug:`2419` (fixed in :issue:`2421`) Massage our import of the TripleDES |
| 146 |
cipher to support Cryptography >=43; this should prevent |
| 147 |
``CryptographyDeprecationWarning`` from appearing upon import. Thanks to |
| 148 |
Erick Alejo for the report and Bryan Banda for the patch. |
| 149 |
- :bug:`2420` Modify a test-harness skiptest check to work with newer versions |
| 150 |
of Cryptography. Props to Paul Howarth for the patch. |
| 151 |
- :bug:`2353` Fix a 64-bit-ism in the test suite so the tests don't encounter a |
| 152 |
false negative on 32-bit systems. Reported by Stanislav Levin. |
| 153 |
- :release:`3.4.0 <2023-12-18>` |
| 154 |
- :feature:`-` `Transport` grew a new ``packetizer_class`` kwarg for overriding |
| 155 |
the packet-handler class used internally. Mostly for testing, but advanced |
| 156 |
users may find this useful when doing deep hacks. |
| 157 |
- :bug:`- major` Address `CVE 2023-48795 <https://terrapin-attack.com/>`_ (aka |
| 158 |
the "Terrapin Attack", a vulnerability found in the SSH protocol re: |
| 159 |
treatment of packet sequence numbers) as follows: |
| 160 |
|
| 161 |
- The vulnerability only impacts encrypt-then-MAC digest algorithms in |
| 162 |
tandem with CBC ciphers, and ChaCha20-poly1305; of these, Paramiko |
| 163 |
currently only implements ``hmac-sha2-(256|512)-etm`` in tandem with |
| 164 |
``AES-CBC``. If you are unable to upgrade to Paramiko versions containing |
| 165 |
the below fixes right away, you may instead use the |
| 166 |
``disabled_algorithms`` connection option to disable the ETM MACs and/or |
| 167 |
the CBC ciphers (this option is present in Paramiko >=2.6). |
| 168 |
- As the fix for the vulnerability requires both ends of the connection to |
| 169 |
cooperate, the below changes will only take effect when the remote end is |
| 170 |
OpenSSH >= 9.6 (or equivalent, such as Paramiko in server mode, as of |
| 171 |
this patch version) and configured to use the new "strict kex" mode. |
| 172 |
Paramiko will always attempt to use "strict kex" mode if offered by the |
| 173 |
server, unless you override this by specifying ``strict_kex=False`` in |
| 174 |
`Transport.__init__`. |
| 175 |
- Paramiko will now raise an `SSHException` subclass (`MessageOrderError`) |
| 176 |
when protocol messages are received in unexpected order. This includes |
| 177 |
situations like receiving ``MSG_DEBUG`` or ``MSG_IGNORE`` during initial |
| 178 |
key exchange, which are no longer allowed during strict mode. |
| 179 |
- Key (re)negotiation -- i.e. ``MSG_NEWKEYS``, whenever it is encountered |
| 180 |
-- now resets packet sequence numbers. (This should be invisible to users |
| 181 |
during normal operation, only causing exceptions if the exploit is |
| 182 |
encountered, which will usually result in, again, `MessageOrderError`.) |
| 183 |
- Sequence number rollover will now raise `SSHException` if it occurs |
| 184 |
during initial key exchange (regardless of strict mode status). |
| 185 |
|
| 186 |
Thanks to Fabian Bäumer, Marcus Brinkmann, and Jörg Schwenk for submitting |
| 187 |
details on the CVE prior to release. |
| 188 |
|
| 189 |
- :bug:`- major` Tweak ``ext-info-(c|s)`` detection during KEXINIT protocol |
| 190 |
phase; the original implementation made assumptions based on an OpenSSH |
| 191 |
implementation detail. |
| 192 |
- :release:`3.3.1 <2023-07-28>` |
| 193 |
- :bug:`-` Cleaned up some very old root level files, mostly just to exercise |
| 194 |
some of our doc build and release machinery. This changelog entry |
| 195 |
intentionally left blank! ``nothing-to-see-here-move-along.gif`` |
| 196 |
- :release:`3.3.0 <2023-07-28>` |
| 197 |
- :feature:`1907` (solves :issue:`1992`) Add support and tests for ``Match |
| 198 |
final …`` (frequently used in ProxyJump configurations to exclude the jump |
| 199 |
host) to our :ref:`SSH config parser <ssh-config-support>`. Patch by |
| 200 |
``@commonism``. |
| 201 |
- :feature:`2058` (solves :issue:`1587` and possibly others) Add an explicit |
| 202 |
``max_concurrent_prefetch_requests`` argument to |
| 203 |
`paramiko.client.SSHClient.get` and `paramiko.client.SSHClient.getfo`, |
| 204 |
allowing users to limit the number of concurrent requests used during |
| 205 |
prefetch. Patch by ``@kschoelhorn``, with a test by ``@bwinston-sdp``. |
| 206 |
- :release:`3.2.0 <2023-05-25>` |
| 207 |
- :bug:`- major` Fixed a very sneaky bug found at the apparently |
| 208 |
rarely-traveled intersection of ``RSA-SHA2`` keys, certificates, SSH agents, |
| 209 |
and stricter-than-OpenSSH server targets. This manifested as yet another |
| 210 |
"well, if we turn off SHA2 at one end or another, everything works again" |
| 211 |
problem, for example with version 12 of the Teleport server endpoint. |
| 212 |
|
| 213 |
This has been fixed; Paramiko tweaked multiple aspects of how it requests |
| 214 |
agent signatures, and the agent appears to do the right thing now. |
| 215 |
|
| 216 |
Thanks to Ryan Stoner for the bug report and testing. |
| 217 |
- :bug:`2012 major` (also :issue:`1961` and countless others) The |
| 218 |
``server-sig-algs`` and ``RSA-SHA2`` features added around Paramiko 2.9 or |
| 219 |
so, had the annoying side effect of not working with servers that don't |
| 220 |
support *either* of those feature sets, requiring use of |
| 221 |
``disabled_algorithms`` to forcibly disable the SHA2 algorithms on Paramiko's |
| 222 |
end. |
| 223 |
|
| 224 |
The **experimental** `~paramiko.transport.ServiceRequestingTransport` (noted |
| 225 |
in its own entry in this changelog) includes a fix for this issue, |
| 226 |
specifically by falling back to the same algorithm as the in-use pubkey if |
| 227 |
it's in the algorithm list (leaving the "first algorithm in said list" as an |
| 228 |
absolute final fallback). |
| 229 |
- :feature:`-` Implement ``_fields()`` on `~paramiko.agent.AgentKey` so that it |
| 230 |
may be compared (via ``==``) with other `~paramiko.pkey.PKey` instances. |
| 231 |
- :bug:`23 major` Since its inception, Paramiko has (for reasons lost to time) |
| 232 |
implemented authentication as a side effect of handling affirmative replies |
| 233 |
to ``MSG_SERVICE_REQUEST`` protocol messages. What this means is Paramiko |
| 234 |
makes one such request before every ``MSG_USERAUTH_REQUEST``, i.e. every auth |
| 235 |
attempt. |
| 236 |
|
| 237 |
OpenSSH doesn't care if clients send multiple service requests, but other |
| 238 |
server implementations are often stricter in what they accept after an |
| 239 |
initial service request (due to the RFCs not being clear). This can result in |
| 240 |
odd behavior when a user doesn't authenticate successfully on the very first |
| 241 |
try (for example, when the right key for a target host is the third in one's |
| 242 |
ssh-agent). |
| 243 |
|
| 244 |
This version of Paramiko now contains an opt-in |
| 245 |
`~paramiko.transport.Transport` subclass, |
| 246 |
`~paramiko.transport.ServiceRequestingTransport`, which more-correctly |
| 247 |
implements service request handling in the Transport, and uses an |
| 248 |
auth-handler subclass internally which has been similarly adapted. Users |
| 249 |
wanting to try this new experimental code path may hand this class to |
| 250 |
`SSHClient.connect <paramiko.client.SSHClient.connect>` as its |
| 251 |
``transport_factory`` kwarg. |
| 252 |
|
| 253 |
.. warning:: |
| 254 |
This feature is **EXPERIMENTAL** and its code may be subject to change. |
| 255 |
|
| 256 |
In addition: |
| 257 |
- minor backwards incompatible changes exist in the new code paths, |
| 258 |
most notably the removal of the (inconsistently applied and rarely |
| 259 |
used) ``event`` arguments to the ``auth_xxx`` methods. |
| 260 |
- GSSAPI support has only been partially implemented, and is untested. |
| 261 |
|
| 262 |
.. note:: |
| 263 |
Some minor backwards-*compatible* changes were made to the **existing** |
| 264 |
Transport and AuthHandler classes to facilitate the new code. For |
| 265 |
example, ``Transport._handler_table`` and |
| 266 |
``AuthHandler._client_handler_table`` are now properties instead of raw |
| 267 |
attributes. |
| 268 |
|
| 269 |
- :feature:`387` Users of `~paramiko.client.SSHClient` can now configure the |
| 270 |
authentication logic Paramiko uses when connecting to servers; this |
| 271 |
functionality is intended for advanced users and higher-level libraries such |
| 272 |
as `Fabric <https://fabfile.org>`_. See `~paramiko.auth_strategy` for |
| 273 |
details. |
| 274 |
|
| 275 |
Fabric's co-temporal release includes a proof-of-concept use of this feature, |
| 276 |
implementing an auth flow much closer to that of the OpenSSH client (versus |
| 277 |
Paramiko's legacy behavior). It is **strongly recommended** that if this |
| 278 |
interests you, investigate replacing any direct use of ``SSHClient`` with |
| 279 |
Fabric's ``Connection``. |
| 280 |
|
| 281 |
.. warning:: |
| 282 |
This feature is **EXPERIMENTAL**; please see its docs for details. |
| 283 |
|
| 284 |
- :feature:`-` Enhanced `~paramiko.agent.AgentKey` with new attributes, such |
| 285 |
as: |
| 286 |
|
| 287 |
- Added a ``comment`` attribute (and constructor argument); |
| 288 |
`Agent.get_keys() <paramiko.agent.Agent.get_keys>` now uses this kwarg to |
| 289 |
store any comment field sent over by the agent. The original version of |
| 290 |
the agent feature inexplicably did not store the comment anywhere. |
| 291 |
- Agent-derived keys now attempt to instantiate a copy of the appropriate |
| 292 |
key class for access to other algorithm-specific members (eg key size). |
| 293 |
This is available as the ``.inner_key`` attribute. |
| 294 |
|
| 295 |
.. note:: |
| 296 |
This functionality is now in use in Fabric's new ``--list-agent-keys`` |
| 297 |
feature, as well as in Paramiko's debug logging. |
| 298 |
|
| 299 |
- :feature:`-` `~paramiko.pkey.PKey` now offers convenience |
| 300 |
"meta-constructors", static methods that simplify the process of |
| 301 |
instantiating the correct subclass for a given key input. |
| 302 |
|
| 303 |
For example, `PKey.from_path <paramiko.pkey.PKey.from_path>` can load a file |
| 304 |
path without knowing *a priori* what type of key it is (thanks to some handy |
| 305 |
methods within our cryptography dependency). Going forwards, we expect this |
| 306 |
to be the primary method of loading keys by user code that runs on "human |
| 307 |
time" (i.e. where some minor efficiencies are worth the convenience). |
| 308 |
|
| 309 |
In addition, `PKey.from_type_string <paramiko.pkey.PKey.from_type_string>` |
| 310 |
now exists, and is being used in some internals to load ssh-agent keys. |
| 311 |
|
| 312 |
As part of these changes, `~paramiko.pkey.PKey` and friends grew an |
| 313 |
`~paramiko.pkey.PKey.identifiers` classmethod; this is inspired by the |
| 314 |
`~paramiko.ecdsakey.ECDSAKey.supported_key_format_identifiers` classmethod |
| 315 |
(which now refers to the new method.) This also includes adding a ``.name`` |
| 316 |
attribute to most key classes (which will eventually replace ``.get_name()``. |
| 317 |
|
| 318 |
- :feature:`-` `~paramiko.pkey.PKey` grew a new ``.algorithm_name`` property |
| 319 |
which displays the key algorithm; this is typically derived from the value of |
| 320 |
`~paramiko.pkey.PKey.get_name`. For example, ED25519 keys have a ``get_name`` |
| 321 |
of ``ssh-ed25519`` (the SSH protocol key type field value), and now have a |
| 322 |
``algorithm_name`` of ``ED25519``. |
| 323 |
- :feature:`-` `~paramiko.pkey.PKey` grew a new ``.fingerprint`` property which |
| 324 |
emits a fingerprint string matching the SHA256+Base64 values printed by |
| 325 |
various OpenSSH tooling (eg ``ssh-add -l``, ``ssh -v``). This is intended to |
| 326 |
help troubleshoot Paramiko-vs-OpenSSH behavior and will eventually replace |
| 327 |
the venerable ``get_fingerprint`` method. |
| 328 |
- :bug:`- major` `~paramiko.agent.AgentKey` had a dangling Python 3 |
| 329 |
incompatible ``__str__`` method returning bytes. This method has been |
| 330 |
removed, allowing the superclass' (`~paramiko.pkey.PKey`) method to run |
| 331 |
instead. |
| 332 |
- :release:`3.1.0 <2023-03-10>` |
| 333 |
- :feature:`2013` (solving :issue:`2009`, plus others) Add an explicit |
| 334 |
``channel_timeout`` keyword argument to `paramiko.client.SSHClient.connect`, |
| 335 |
allowing users to configure the previously-hardcoded default value of 3600 |
| 336 |
seconds. Thanks to ``@VakarisZ`` and ``@ilija-lazoroski`` for the report and |
| 337 |
patch, with credit to Mike Salvatore for patch review. |
| 338 |
- :feature:`2173` Accept single tabs as field separators (in addition to |
| 339 |
single spaces) in `<paramiko.hostkeys.HostKeyEntry.from_line>` for parity |
| 340 |
with OpenSSH's KnownHosts parser. Patched by Alex Chavkin. |
| 341 |
- :support:`2178 backported` Apply ``codespell`` to the codebase, which found a |
| 342 |
lot of very old minor spelling mistakes in docstrings. Also modernize many |
| 343 |
instances of ``*largs`` vs ``*args`` and ``**kwarg`` vs ``**kwargs``. Patch |
| 344 |
courtesy of Yaroslav Halchenko, with review from Brian Skinn. |
| 345 |
- :release:`3.0.0 <2023-01-20>` |
| 346 |
- :bug:`2110 major` Remove some unnecessary ``__repr__`` calls when handling |
| 347 |
bytes-vs-str conversions. This was apparently doing a lot of unintentional |
| 348 |
data processing, which adds up in some use cases -- such as SFTP transfers, |
| 349 |
which may now be significantly faster. Kudos to Shuhua Zhong for catch & |
| 350 |
patch. |
| 351 |
- :bug:`2165 major` Streamline some redundant (and costly) byte conversion |
| 352 |
calls in the packetizer and the core SFTP module. This should lead to some |
| 353 |
SFTP speedups at the very least. Thanks to Alex Gaynor for the patch. |
| 354 |
- :support:`-` ``paramiko.util.retry_on_signal`` (and any internal uses of |
| 355 |
same, and also any internal retries of ``EINTR`` on eg socket operations) has |
| 356 |
been removed. As of Python 3.5, per `PEP 475 |
| 357 |
<https://peps.python.org/pep-0475/>`_, this functionality (and retrying |
| 358 |
``EINTR`` generally) is now part of the standard library. |
| 359 |
|
| 360 |
.. warning:: |
| 361 |
This change is backwards incompatible if you were explicitly |
| 362 |
importing/using this particular function. The observable behavior otherwise |
| 363 |
should not be changing. |
| 364 |
|
| 365 |
- :support:`732` (also re: :issue:`630`) `~paramiko.config.SSHConfig` used to |
| 366 |
straight-up delete the ``proxycommand`` key from config lookup results when |
| 367 |
the source config said ``ProxyCommand none``. This has been altered to |
| 368 |
preserve the key and give it the Python value ``None``, thus making the |
| 369 |
Python representation more in line with the source config file. |
| 370 |
|
| 371 |
.. warning:: |
| 372 |
This change is backwards incompatible if you were relying on the old (1.x, |
| 373 |
2.x) behavior for some reason (eg assuming all ``proxycommand`` values were |
| 374 |
valid subcommand strings). |
| 375 |
|
| 376 |
- :support:`-` The behavior of private key classes' (ie anything inheriting |
| 377 |
from `~paramiko.pkey.PKey`) private key writing methods used to perform a |
| 378 |
manual, extra ``chmod`` call after writing. This hasn't been strictly |
| 379 |
necessary since the mid 2.x release line (when key writing started giving the |
| 380 |
``mode`` argument to `os.open`), and has now been removed entirely. |
| 381 |
|
| 382 |
This should only be observable if you were mocking Paramiko's system calls |
| 383 |
during your own testing, or similar. |
| 384 |
- :support:`-` ``PKey.__cmp__`` has been removed. Ordering-oriented comparison |
| 385 |
of key files is unlikely to have ever made sense (the old implementation |
| 386 |
attempted to order by the hashes of the key material) and so we have not |
| 387 |
bothered setting up ``__lt__`` and friends at this time. The class continues |
| 388 |
to have its original ``__eq__`` untouched. |
| 389 |
|
| 390 |
.. warning:: |
| 391 |
This change is backwards incompatible if you were actually trying to sort |
| 392 |
public key objects (directly or indirectly). Please file bug reports |
| 393 |
detailing your use case if you have some intractable need for this |
| 394 |
behavior, and we'll consider adding back the necessary Python 3 magic |
| 395 |
methods so that it works as before. |
| 396 |
|
| 397 |
- :bug:`- major` A handful of lower-level classes (notably |
| 398 |
`paramiko.message.Message` and `paramiko.pkey.PKey`) previously returned |
| 399 |
`bytes` objects from their implementation of ``__str__``, even under Python |
| 400 |
3; and there was never any ``__bytes__`` method. |
| 401 |
|
| 402 |
These issues have been fixed by renaming ``__str__`` to ``__bytes__`` and |
| 403 |
relying on Python's default "stringification returns the output of |
| 404 |
``__repr__``" behavior re: any real attempts to ``str()`` such objects. |
| 405 |
- :support:`-` ``paramiko.common.asbytes`` has been moved to |
| 406 |
``paramiko.util.asbytes``. |
| 407 |
|
| 408 |
.. warning:: |
| 409 |
This change is backwards incompatible if you were directly using this |
| 410 |
function (which is unlikely). |
| 411 |
|
| 412 |
- :support:`-` Remove the now irrelevant ``paramiko.py3compat`` module. |
| 413 |
|
| 414 |
.. warning:: |
| 415 |
This change is backwards incompatible. Such references should be |
| 416 |
search-and-replaced with their modern Python 3.6+ equivalents; in some |
| 417 |
cases, still-useful methods or values have been moved to ``paramiko.util`` |
| 418 |
(most) or ``paramiko.common`` (``byte_*``). |
| 419 |
|
| 420 |
- :support:`-` Drop support for Python versions less than 3.6, including Python |
| 421 |
2. So long and thanks for all the fish! |
| 422 |
|
| 423 |
.. warning:: |
| 424 |
This change is backwards incompatible. However, our packaging metadata has |
| 425 |
been updated to include ``python_requires``, so this should not cause |
| 426 |
breakage unless you're on an old installation method that can't read this |
| 427 |
metadata. |
| 428 |
|
| 429 |
.. note:: |
| 430 |
As part of this change, our dependencies have been updated; eg we now |
| 431 |
require Cryptography>=3.3, up from 2.5. |
| 432 |
|
| 433 |
- :release:`2.12.0 <2022-11-04>` |
| 434 |
- :feature:`2125` (also re: :issue:`2054`) Add a ``transport_factory`` kwarg to |
| 435 |
`SSHClient.connect <paramiko.client.SSHClient.connect>` for advanced |
| 436 |
users to gain more control over early Transport setup and manipulation. |
| 437 |
Thanks to Noah Pederson for the patch. |
| 438 |
- :release:`2.11.1 <2022-11-04>` |
| 439 |
- :release:`2.10.6 <2022-11-04>` |
| 440 |
- :bug:`1822` (via, and relating to, far too many other issues to mention here) |
| 441 |
Update `~paramiko.client.SSHClient` so it explicitly closes its wrapped |
| 442 |
socket object upon encountering socket errors at connection time. This should |
| 443 |
help somewhat with certain classes of memory leaks, resource warnings, and/or |
| 444 |
errors (though we hasten to remind everyone that Client and Transport have |
| 445 |
their own ``.close()`` methods for use in non-error situations!). Patch |
| 446 |
courtesy of ``@YoavCohen``. |
| 447 |
- bug:`1637` (via :issue:`1599`) Raise `~paramiko.ssh_exception.SSHException` |
| 448 |
explicitly when blank private key data is loaded, instead of the natural |
| 449 |
result of ``IndexError``. This should help more bits of Paramiko or |
| 450 |
Paramiko-adjacent codebases to correctly handle this class of error. Credit: |
| 451 |
Nicholas Dietz. |
| 452 |
- :release:`2.11.0 <2022-05-16>` |
| 453 |
- :release:`2.10.5 <2022-05-16>` |
| 454 |
- :release:`2.9.5 <2022-05-16>` |
| 455 |
- :bug:`1933` Align signature verification algorithm with OpenSSH re: |
| 456 |
zero-padding signatures which don't match their nominal size/length. This |
| 457 |
shouldn't affect most users, but will help Paramiko-implemented SSH servers |
| 458 |
handle poorly behaved clients such as PuTTY. Thanks to Jun Omae for catch & |
| 459 |
patch. |
| 460 |
- :bug:`2017` OpenSSH 7.7 and older has a bug preventing it from understanding |
| 461 |
how to perform SHA2 signature verification for RSA certificates (specifically |
| 462 |
certs - not keys), so when we added SHA2 support it broke all clients using |
| 463 |
RSA certificates with these servers. This has been fixed in a manner similar |
| 464 |
to what OpenSSH's own client does: a version check is performed and the |
| 465 |
algorithm used is downgraded if needed. Reported by Adarsh Chauhan, with fix |
| 466 |
suggested by Jun Omae. |
| 467 |
- :support:`2038` (via :issue:`2039`) Recent versions of Cryptography have |
| 468 |
deprecated Blowfish algorithm support; in lieu of an easy method for users to |
| 469 |
remove it from the list of algorithms Paramiko tries to import and use, we've |
| 470 |
decided to remove it from our "preferred algorithms" list. This will both |
| 471 |
discourage use of a weak algorithm, and avoid warnings. Credit for |
| 472 |
report/patch goes to Mike Roest. |
| 473 |
- :bug:`2008` (via :issue:`2010`) Windows-native SSH agent support as merged in |
| 474 |
2.10 could encounter ``Errno 22`` ``OSError`` exceptions in some scenarios |
| 475 |
(eg server not cleanly closing a relevant named pipe). This has been worked |
| 476 |
around and should be less problematic. Reported by Danilo Campana Fuchs and |
| 477 |
patched by Jun Omae. |
| 478 |
- :release:`2.10.4 <2022-04-25>` |
| 479 |
- :release:`2.9.4 <2022-04-25>` |
| 480 |
- :support:`1838 backported` (via :issue:`1870`/:issue:`2028`) Update |
| 481 |
``camelCase`` method calls against the ``threading`` module to be |
| 482 |
``snake_case``; this and related tweaks should fix some deprecation warnings |
| 483 |
under Python 3.10. Thanks to Karthikeyan Singaravelan for the report, |
| 484 |
``@Narendra-Neerukonda`` for the patch, and to Thomas Grainger and Jun Omae |
| 485 |
for patch workshopping. |
| 486 |
- :feature:`1951` Add SSH config token expansion (eg ``%h``, ``%p``) when |
| 487 |
parsing ``ProxyJump`` directives. Patch courtesy of Bruno Inec. |
| 488 |
- :bug:`1964` (via :issue:`2024` as also reported in :issue:`2023`) |
| 489 |
`~paramiko.pkey.PKey` instances' ``__eq__`` did not have the usual safety |
| 490 |
guard in place to ensure they were being compared to another ``PKey`` object, |
| 491 |
causing occasional spurious ``BadHostKeyException`` (among other things). |
| 492 |
This has been fixed. Thanks to Shengdun Hua for the original report/patch and |
| 493 |
to Christopher Papke for the final version of the fix. |
| 494 |
- :support:`2004` (via :issue:`2011`) Apply unittest ``skipIf`` to tests |
| 495 |
currently using SHA1 in their critical path, to avoid failures on systems |
| 496 |
starting to disable SHA1 outright in their crypto backends (eg RHEL 9). |
| 497 |
Report & patch via Paul Howarth. |
| 498 |
- :bug:`2035` Servers offering certificate variants of hostkey algorithms (eg |
| 499 |
``[email protected]``) could not have their host keys verified by |
| 500 |
Paramiko clients, as it only ever considered non-cert key types for that part |
| 501 |
of connection handshaking. This has been fixed. |
| 502 |
- :release:`2.10.3 <2022-03-18>` |
| 503 |
- :release:`2.9.3 <2022-03-18>` |
| 504 |
- :bug:`1963` (via :issue:`1977`) Certificate-based pubkey auth was |
| 505 |
inadvertently broken when adding SHA2 support; this has been fixed. Reported |
| 506 |
by Erik Forsberg and fixed by Jun Omae. |
| 507 |
- :bug:`2002` (via :issue:`2003`) Switch from module-global to thread-local |
| 508 |
storage when recording thread IDs for a logging helper; this should avoid one |
| 509 |
flavor of memory leak for long-running processes. Catch & patch via Richard |
| 510 |
Kojedzinszky. |
| 511 |
- :release:`2.10.2 <2022-03-14>` |
| 512 |
- :bug:`2001` Fix Python 2 compatibility breakage introduced in 2.10.1. Spotted |
| 513 |
by Christian Hammond. |
| 514 |
|
| 515 |
.. warning:: |
| 516 |
This is almost certainly the last time we will fix Python 2 related |
| 517 |
errors! Please see `the roadmap |
| 518 |
<https://bitprophet.org/projects/#roadmap>`_. |
| 519 |
|
| 520 |
- :release:`2.10.1 <2022-03-11>` |
| 521 |
- :bug:`- (2.10+)` (`CVE-2022-24302 |
| 522 |
<https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24302>`_) Creation |
| 523 |
of new private key files using `~paramiko.pkey.PKey` subclasses was subject |
| 524 |
to a race condition between file creation & mode modification, which could be |
| 525 |
exploited by an attacker with knowledge of where the Paramiko-using code |
| 526 |
would write out such files. |
| 527 |
|
| 528 |
This has been patched by using `os.open` and `os.fdopen` to ensure new files |
| 529 |
are opened with the correct mode immediately. We've left the subsequent |
| 530 |
explicit ``chmod`` in place to minimize any possible disruption, though it |
| 531 |
may get removed in future backwards-incompatible updates. |
| 532 |
|
| 533 |
Thanks to Jan Schejbal for the report & feedback on the solution, and to |
| 534 |
Jeremy Katz at Tidelift for coordinating the disclosure. |
| 535 |
- :release:`2.10.0 <2022-03-11>` |
| 536 |
- :feature:`1976` Add support for the ``%C`` token when parsing SSH config |
| 537 |
files. Foundational PR submitted by ``@jbrand42``. |
| 538 |
- :feature:`1509` (via :issue:`1868`, :issue:`1837`) Add support for OpenSSH's |
| 539 |
Windows agent as a fallback when Putty/WinPageant isn't available or |
| 540 |
functional. Reported by ``@benj56`` with patches/PRs from ``@lewgordon`` and |
| 541 |
Patrick Spendrin. |
| 542 |
- :bug:`892 major` Significantly speed up low-level read/write actions on |
| 543 |
`~paramiko.sftp_file.SFTPFile` objects by using `bytearray`/`memoryview`. |
| 544 |
This is unlikely to change anything for users of the higher level methods |
| 545 |
like `SFTPClient.get <paramiko.sftp_client.SFTPClient.get>` or |
| 546 |
`SFTPClient.getfo <paramiko.sftp_client.SFTPClient.getfo>`, but users of |
| 547 |
`SFTPClient.open <paramiko.sftp_client.SFTPClient.open>` will likely see |
| 548 |
orders of magnitude improvements for files larger than a few megabytes in |
| 549 |
size. |
| 550 |
|
| 551 |
Thanks to ``@jkji`` for the original report and to Sevastian Tchernov for the |
| 552 |
patch. |
| 553 |
- :support:`1985` Add ``six`` explicitly to install-requires; it snuck into |
| 554 |
active use at some point but has only been indicated by transitive dependency |
| 555 |
on ``bcrypt`` until they somewhat-recently dropped it. This will be |
| 556 |
short-lived until we `drop Python 2 |
| 557 |
support <https://bitprophet.org/projects/#roadmap>`_. Thanks to Sondre |
| 558 |
Lillebø Gundersen for catch & patch. |
| 559 |
- :release:`2.9.2 <2022-01-08>` |
| 560 |
- :bug:`-` Connecting to servers which support ``server-sig-algs`` but which |
| 561 |
have no overlap between that list and what a Paramiko client supports, now |
| 562 |
raise an exception instead of defaulting to ``rsa-sha2-512`` (since the use |
| 563 |
of ``server-sig-algs`` allows us to know what the server supports). |
| 564 |
- :bug:`-` Enhanced log output when connecting to servers that do not support |
| 565 |
``server-sig-algs`` extensions, making the new-as-of-2.9 defaulting to SHA2 |
| 566 |
pubkey algorithms more obvious when it kicks in. |
| 567 |
- :release:`2.9.1 <2021-12-24>` |
| 568 |
- :bug:`1955` Server-side support for ``rsa-sha2-256`` and ``ssh-rsa`` wasn't |
| 569 |
fully operable after 2.9.0's release (signatures for RSA pubkeys were always |
| 570 |
run through ``rsa-sha2-512`` instead). Report and early stab at a fix |
| 571 |
courtesy of Jun Omae. |
| 572 |
- :release:`2.9.0 <2021-12-23>` |
| 573 |
- :feature:`1643` (also :issue:`1925`, :issue:`1644`, :issue:`1326`) Add |
| 574 |
support for SHA-2 variants of RSA key verification algorithms (as described |
| 575 |
in :rfc:`8332`) as well as limited SSH extension negotiation (:rfc:`8308`). |
| 576 |
|
| 577 |
.. warning:: |
| 578 |
This change is slightly backwards incompatible, insofar as action is |
| 579 |
required if your target systems do not support either RSA2 or the |
| 580 |
``server-sig-algs`` protocol extension. |
| 581 |
|
| 582 |
Specifically, you need to specify ``disabled_algorithms={'keys': |
| 583 |
['rsa-sha2-256', 'rsa-sha2-512']}`` in either `SSHClient |
| 584 |
<paramiko.client.SSHClient.__init__>` or `Transport |
| 585 |
<paramiko.transport.Transport.__init__>`. See below for details on why. |
| 586 |
|
| 587 |
How SSH servers/clients decide when and how to use this functionality can be |
| 588 |
complicated; Paramiko's support is as follows: |
| 589 |
|
| 590 |
- Client verification of server host key during key exchange will now prefer |
| 591 |
``rsa-sha2-512``, ``rsa-sha2-256``, and legacy ``ssh-rsa`` algorithms, in |
| 592 |
that order, instead of just ``ssh-rsa``. |
| 593 |
|
| 594 |
- Note that the preference order of other algorithm families such as |
| 595 |
``ed25519`` and ``ecdsa`` has not changed; for example, those two |
| 596 |
groups are still preferred over RSA. |
| 597 |
|
| 598 |
- Server mode will now offer all 3 RSA algorithms for host key verification |
| 599 |
during key exchange, similar to client mode, if it has been configured with |
| 600 |
an RSA host key. |
| 601 |
- Client mode key exchange now sends the ``ext-info-c`` flag signaling |
| 602 |
support for ``MSG_EXT_INFO``, and support for parsing the latter |
| 603 |
(specifically, its ``server-sig-algs`` flag) has been added. |
| 604 |
- Client mode, when performing public key authentication with an RSA key or |
| 605 |
cert, will act as follows: |
| 606 |
|
| 607 |
- In all cases, the list of algorithms to consider is based on the new |
| 608 |
``preferred_pubkeys`` list (see below) and ``disabled_algorithms`` |
| 609 |
(specifically, its ``pubkeys`` key); this list, like with host keys, |
| 610 |
prefers SHA2-512, SHA2-256 and SHA1, in that order. |
| 611 |
- When the server does not send ``server-sig-algs``, Paramiko will attempt |
| 612 |
the first algorithm in the above list. Clients connecting to legacy |
| 613 |
servers should thus use ``disabled_algorithms`` to turn off SHA2. |
| 614 |
- When the server does send ``server-sig-algs``, the first algorithm |
| 615 |
supported by both ends is used, or if there is none, it falls back to the |
| 616 |
previous behavior. |
| 617 |
|
| 618 |
- SSH agent support grew the ability to specify algorithm flags when |
| 619 |
requesting private key signatures; this is now used to forward SHA2 |
| 620 |
algorithms when appropriate. |
| 621 |
- Server mode is now capable of pubkey auth involving SHA-2 signatures from |
| 622 |
clients, provided one's server implementation actually provides for doing |
| 623 |
so. |
| 624 |
|
| 625 |
- This includes basic support for sending ``MSG_EXT_INFO`` (containing |
| 626 |
``server-sig-algs`` only) to clients advertising ``ext-info-c`` in their |
| 627 |
key exchange list. |
| 628 |
|
| 629 |
In order to implement the above, the following API additions were made: |
| 630 |
|
| 631 |
- `PKey.sign_ssh_data <paramiko.pkey.PKey>`: Grew an extra, optional |
| 632 |
``algorithm`` keyword argument (defaulting to ``None`` for most subclasses, |
| 633 |
and to ``"ssh-rsa"`` for `~paramiko.rsakey.RSAKey`). |
| 634 |
- A new `~paramiko.ssh_exception.SSHException` subclass was added, |
| 635 |
`~paramiko.ssh_exception.IncompatiblePeer`, and is raised in all spots |
| 636 |
where key exchange aborts due to algorithmic incompatibility. |
| 637 |
|
| 638 |
- Like all other exceptions in that module, it inherits from |
| 639 |
``SSHException``, and as we did not change anything else about the |
| 640 |
raising (i.e. the attributes and message text are the same) this change |
| 641 |
is backwards compatible. |
| 642 |
|
| 643 |
- `~paramiko.transport.Transport` grew a ``_preferred_pubkeys`` attribute and |
| 644 |
matching ``preferred_pubkeys`` property to match the other, kex-focused, |
| 645 |
such members. This allows client pubkey authentication to honor the |
| 646 |
``disabled_algorithms`` feature. |
| 647 |
|
| 648 |
Thanks to Krisztián Kovács for the report and an early stab at a patch, as |
| 649 |
well as the numerous users who submitted feedback on the issue, including but |
| 650 |
not limited to: Christopher Rabotin, Sam Bull, and Manfred Kaiser. |
| 651 |
|
| 652 |
- :release:`2.8.1 <2021-11-28>` |
| 653 |
- :bug:`985` (via :issue:`992`) Fix listdir failure when server uses a locale. |
| 654 |
Now on Python 2.7 `SFTPAttributes <paramiko.sftp_attr.SFTPAttributes>` will |
| 655 |
decode abbreviated month names correctly rather than raise |
| 656 |
``UnicodeDecodeError```. Patch courtesy of Martin Packman. |
| 657 |
- :bug:`1024` Deleting items from `~paramiko.hostkeys.HostKeys` would |
| 658 |
incorrectly raise `KeyError` even for valid keys, due to a logic bug. This |
| 659 |
has been fixed. Report & patch credit: Jia Zhang. |
| 660 |
- :bug:`1257` (also :issue:`1266`) Update RSA and ECDSA key decoding |
| 661 |
subroutines to correctly catch exception types thrown by modern |
| 662 |
versions of Cryptography (specifically ``TypeError`` and |
| 663 |
its internal ``UnsupportedAlgorithm``). These exception classes will now |
| 664 |
become `~paramiko.ssh_exception.SSHException` instances instead of bubbling |
| 665 |
up. Thanks to Ignat Semenov for the report and ``@tylergarcianet`` for an |
| 666 |
early patch. |
| 667 |
- :bug:`-` (also :issue:`908`) Update `~paramiko.pkey.PKey` and subclasses to |
| 668 |
compare (``__eq__``) via direct field/attribute comparison instead of hashing |
| 669 |
(while retaining the existing behavior of ``__hash__`` via a slight |
| 670 |
refactor). Big thanks to Josh Snyder and Jun Omae for the reports, and to |
| 671 |
Josh Snyder for reproduction details & patch. |
| 672 |
|
| 673 |
.. warning:: |
| 674 |
This fixes a security flaw! If you are running Paramiko on 32-bit systems |
| 675 |
with low entropy (such as any 32-bit Python 2, or a 32-bit Python 3 which |
| 676 |
is running with ``PYTHONHASHSEED=0``) it is possible for an attacker to |
| 677 |
craft a new keypair from an exfiltrated public key, which Paramiko would |
| 678 |
consider equal to the original key. |
| 679 |
|
| 680 |
This could enable attacks such as, but not limited to, the following: |
| 681 |
|
| 682 |
- Paramiko server processes would incorrectly authenticate the attacker |
| 683 |
(using their generated private key) as if they were the victim. We see |
| 684 |
this as the most plausible attack using this flaw. |
| 685 |
- Paramiko client processes would incorrectly validate a connected server |
| 686 |
(when host key verification is enabled) while subjected |
| 687 |
to a man-in-the-middle attack. This impacts more users than the |
| 688 |
server-side version, but also carries higher requirements for the |
| 689 |
attacker, namely successful DNS poisoning or other MITM techniques. |
| 690 |
|
| 691 |
- :release:`2.8.0 <2021-10-09>` |
| 692 |
- :support:`-` Administrivia overhaul, including but not limited to: |
| 693 |
|
| 694 |
- Migrate CI to CircleCI |
| 695 |
- Primary dev branch is now ``main`` (renamed) |
| 696 |
- Many README edits for clarity, modernization etc; including a bunch more |
| 697 |
(and consistent) status badges & unification with main project site index |
| 698 |
- PyPI page much more fleshed out (long_description is now filled in with the |
| 699 |
README; sidebar links expanded; etc) |
| 700 |
- flake8, pytest configs split out of setup.cfg into their own files |
| 701 |
- Invoke/invocations (used by maintainers/contributors) upgraded to modern |
| 702 |
versions |
| 703 |
|
| 704 |
- :bug:`1462 major` (via :issue:`1882`) Newer server-side key exchange |
| 705 |
algorithms not intended to use SHA1 (``diffie-hellman-group14-sha256``, |
| 706 |
``diffie-hellman-group16-sha512``) were incorrectly using SHA1 after all, due |
| 707 |
to a bug causing them to ignore the ``hash_algo`` class attribute. This has |
| 708 |
been corrected. Big thanks to ``@miverson`` for the report and to Benno Rice |
| 709 |
for the patch. |
| 710 |
- :feature:`1846` Add a ``prefetch`` keyword argument to `SFTPClient.get <paramiko.sftp_client.SFTPClient.get>`/`SFTPClient.getfo <paramiko.sftp_client.SFTPClient.getfo>` |
| 711 |
so users who need to skip SFTP prefetching are able to conditionally turn it |
| 712 |
off. Thanks to Github user ``@h3ll0r`` for the PR. |
| 713 |
- :release:`2.7.2 <2020-08-30>` |
| 714 |
- :support:`- backported` Update our CI to catch issues with sdist generation, |
| 715 |
installation and testing. |
| 716 |
- :support:`1727 backported` Add missing test suite fixtures directory to |
| 717 |
MANIFEST.in, reinstating the ability to run Paramiko's tests from an sdist |
| 718 |
tarball. Thanks to Sandro Tosi for reporting the issue and to Blazej Michalik |
| 719 |
for the PR. |
| 720 |
- :support:`1722 backported` Remove leading whitespace from OpenSSH RSA test |
| 721 |
suite static key fixture, to conform better to spec. Credit: Alex Gaynor. |
| 722 |
- :bug:`-` Fix incorrect string formatting causing unhelpful error message |
| 723 |
annotation when using Kerberos/GSSAPI. (Thanks, newer version of flake8!) |
| 724 |
- :bug:`1723` Fix incorrectly swapped order of ``p`` and ``q`` numbers when |
| 725 |
loading OpenSSH-format RSA private keys. At minimum this should address a |
| 726 |
slowdown when using such keys, and it also means Paramiko works with |
| 727 |
Cryptography 3.1 and above (which complains strenuously when this problem |
| 728 |
appears). Thanks to Alex Gaynor for the patch. |
| 729 |
- :release:`2.7.1 <2019-12-09>` |
| 730 |
- :bug:`1567` The new-style private key format (added in 2.7) suffered from an |
| 731 |
unpadding bug which had been fixed earlier for Ed25519 (as that key type has |
| 732 |
always used the newer format). That fix has been refactored and applied to |
| 733 |
the base key class, courtesy of Pierce Lopez. |
| 734 |
- :bug:`1565` (via :issue:`1566`) Fix a bug in support for ECDSA keys under the |
| 735 |
newly supported OpenSSH key format. Thanks to Pierce Lopez for the patch. |
| 736 |
- :release:`2.7.0 <2019-12-03>` |
| 737 |
- :feature:`602` (via :issue:`1343`, :issue:`1313`, :issue:`618`) Implement |
| 738 |
support for OpenSSH 6.5-style private key files (typically denoted as having |
| 739 |
``BEGIN OPENSSH PRIVATE KEY`` headers instead of PEM format's ``BEGIN RSA |
| 740 |
PRIVATE KEY`` or similar). If you were getting any sort of weird auth error |
| 741 |
from "modern" keys generated on newer operating system releases (such as |
| 742 |
macOS Mojave), this is the first update to try. |
| 743 |
|
| 744 |
Major thanks to everyone who contributed or tested versions of the patch, |
| 745 |
including but not limited to: Kevin Abel, Michiel Tiller, Pierce Lopez, and |
| 746 |
Jared Hobbs. |
| 747 |
- :bug:`- major` ``ssh_config`` :ref:`token expansion <TOKENS>` used a |
| 748 |
different method of determining the local username (``$USER`` env var), |
| 749 |
compared to what the (much older) client connection code does |
| 750 |
(``getpass.getuser``, which includes ``$USER`` but may check other variables |
| 751 |
first, and is generally much more comprehensive). Both modules now use |
| 752 |
``getpass.getuser``. |
| 753 |
- :feature:`-` A couple of outright `~paramiko.config.SSHConfig` parse errors |
| 754 |
were previously represented as vanilla ``Exception`` instances; as part of |
| 755 |
recent feature work a more specific exception class, |
| 756 |
`~paramiko.ssh_exception.ConfigParseError`, has been created. It is now also |
| 757 |
used in those older spots, which is naturally backwards compatible. |
| 758 |
- :feature:`717` Implement support for the ``Match`` keyword in ``ssh_config`` |
| 759 |
files. Previously, this keyword was simply ignored & keywords inside such |
| 760 |
blocks were treated as if they were part of the previous block. Thanks to |
| 761 |
Michael Leinartas for the initial patchset. |
| 762 |
|
| 763 |
.. note:: |
| 764 |
This feature adds a new :doc:`optional install dependency </installing>`, |
| 765 |
`Invoke <https://www.pyinvoke.org>`_, for managing ``Match exec`` |
| 766 |
subprocesses. |
| 767 |
|
| 768 |
- :support:`-` Additional :doc:`installation </installing>` ``extras_require`` |
| 769 |
"flavors" (``ed25519``, ``invoke``, and ``all``) have been added to |
| 770 |
our packaging metadata; see the install docs for details. |
| 771 |
- :bug:`- major` Paramiko's use of ``subprocess`` for ``ProxyCommand`` support |
| 772 |
is conditionally imported to prevent issues on limited interpreter platforms |
| 773 |
like Google Compute Engine. However, any resulting ``ImportError`` was lost |
| 774 |
instead of preserved for raising (in the rare cases where a user tried |
| 775 |
leveraging ``ProxyCommand`` in such an environment). This has been fixed. |
| 776 |
- :bug:`- major` Perform deduplication of ``IdentityFile`` contents during |
| 777 |
``ssh_config`` parsing; previously, if your config would result in the same |
| 778 |
value being encountered more than once, ``IdentityFile`` would contain that |
| 779 |
many copies of the same string. |
| 780 |
- :feature:`897` Implement most 'canonical hostname' ``ssh_config`` |
| 781 |
functionality (``CanonicalizeHostname``, ``CanonicalDomains``, |
| 782 |
``CanonicalizeFallbackLocal``, and ``CanonicalizeMaxDots``; |
| 783 |
``CanonicalizePermittedCNAMEs`` has **not** yet been implemented). All were |
| 784 |
previously silently ignored. Reported by Michael Leinartas. |
| 785 |
- :support:`-` Explicitly document :ref:`which ssh_config features we |
| 786 |
currently support <ssh-config-support>`. Previously users just had to guess, |
| 787 |
which is simply no good. |
| 788 |
- :feature:`-` Add new convenience classmethod constructors to |
| 789 |
`~paramiko.config.SSHConfig`: `~paramiko.config.SSHConfig.from_text`, |
| 790 |
`~paramiko.config.SSHConfig.from_file`, and |
| 791 |
`~paramiko.config.SSHConfig.from_path`. No more annoying two-step process! |
| 792 |
- :release:`2.6.0 <2019-06-23>` |
| 793 |
- :feature:`1463` Add a new keyword argument to `SSHClient.connect |
| 794 |
<paramiko.client.SSHClient.connect>` and `~paramiko.transport.Transport`, |
| 795 |
``disabled_algorithms``, which allows selectively disabling one or more |
| 796 |
kex/key/cipher/etc algorithms. This can be useful when disabling algorithms |
| 797 |
your target server (or client) does not support cleanly, or to work around |
| 798 |
unpatched bugs in Paramiko's own implementation thereof. |
| 799 |
- :release:`2.5.1 <2019-06-23>` |
| 800 |
- :release:`2.4.3 <2019-06-23>` |
| 801 |
- :bug:`1306` (via :issue:`1400`) Fix Ed25519 key handling so certain key |
| 802 |
comment lengths don't cause ``SSHException("Invalid key")`` (this was |
| 803 |
technically a bug in how padding, or lack thereof, is |
| 804 |
calculated/interpreted). Thanks to ``@parke`` for the bug report & Pierce |
| 805 |
Lopez for the patch. |
| 806 |
- :support:`1440` (with initial fixes via :issue:`1460`) Tweak many exception |
| 807 |
classes so their string representations are more human-friendly; this also |
| 808 |
includes incidental changes to some ``super()`` calls. |
| 809 |
|
| 810 |
The definitions of exceptions' ``__init__`` methods have *not* changed, nor |
| 811 |
have any log messages been altered, so this should be backwards compatible |
| 812 |
for everything except the actual exceptions' ``__str__()`` outputs. |
| 813 |
|
| 814 |
Thanks to Fabian Büchler for original report & Pierce Lopez for the |
| 815 |
foundational patch. |
| 816 |
- :support:`1311` (for :issue:`584`, replacing :issue:`1166`) Add |
| 817 |
backwards-compatible support for the ``gssapi`` GSSAPI library, as the |
| 818 |
previous backend (``python-gssapi``) has since become defunct. This change |
| 819 |
also includes tests for the GSSAPI functionality. |
| 820 |
|
| 821 |
Big thanks to Anselm Kruis for the patch and to Sebastian Deiß (author of our |
| 822 |
initial GSSAPI functionality) for review. |
| 823 |
|
| 824 |
.. note:: |
| 825 |
This feature also adds ``setup.py`` 'extras' support for installing |
| 826 |
Paramiko as ``paramiko[gssapi]``, which pulls in the optional |
| 827 |
dependencies you had to get by hand previously. |
| 828 |
|
| 829 |
.. note:: |
| 830 |
To be very clear, this patch **does not** remove support for the older |
| 831 |
``python-gssapi`` library. We *may* remove that support in a later release, |
| 832 |
but for now, either library will work. Please upgrade to ``gssapi`` when |
| 833 |
you can, however, as ``python-gssapi`` is no longer maintained upstream. |
| 834 |
|
| 835 |
- :bug:`322 major` `SSHClient.exec_command |
| 836 |
<paramiko.client.SSHClient.exec_command>` previously returned a naive |
| 837 |
`~paramiko.channel.ChannelFile` object for its ``stdin`` value; such objects |
| 838 |
don't know to properly shut down the remote end's stdin when they |
| 839 |
``.close()``. This lead to issues (such as hangs) when running remote |
| 840 |
commands that read from stdin. |
| 841 |
|
| 842 |
A new subclass, `~paramiko.channel.ChannelStdinFile`, has been created which |
| 843 |
closes remote stdin when it itself is closed. |
| 844 |
`~paramiko.client.SSHClient.exec_command` has been updated to use that class |
| 845 |
for its ``stdin`` return value. |
| 846 |
|
| 847 |
Thanks to Brandon Rhodes for the report & steps to reproduce. |
| 848 |
- :release:`2.5.0 <2019-06-09>` |
| 849 |
- :feature:`1233` (also :issue:`1229`, :issue:`1332`) Add support for |
| 850 |
encrypt-then-MAC (ETM) schemes (``[email protected]``, |
| 851 |
``[email protected]``) and two newer Diffie-Hellman group key |
| 852 |
exchange algorithms (``group14``, using SHA256; and ``group16``, using |
| 853 |
SHA512). Patch courtesy of Edgar Sousa. |
| 854 |
- :feature:`532` (via :issue:`1384` and :issue:`1258`) Add support for |
| 855 |
Curve25519 key exchange (aka ``[email protected]``). Thanks to |
| 856 |
Alex Gaynor and Dan Fuhry for supplying patches. |
| 857 |
- :support:`1379` (also :issue:`1369`) Raise Cryptography dependency |
| 858 |
requirement to version 2.5 (from 1.5) and update some deprecated uses of its |
| 859 |
API. |
| 860 |
|
| 861 |
This removes a bunch of warnings of the style |
| 862 |
``CryptographyDeprecationWarning: encode_point has been deprecated on |
| 863 |
EllipticCurvePublicNumbers and will be removed in a future version. Please |
| 864 |
use EllipticCurvePublicKey.public_bytes to obtain both compressed and |
| 865 |
uncompressed point encoding`` and similar, which users who had eventually |
| 866 |
upgraded to Cryptography 2.x would encounter. |
| 867 |
|
| 868 |
.. warning:: |
| 869 |
This change is backwards incompatible **if** you are unable to upgrade your |
| 870 |
version of Cryptography. Please see `Cryptography's own changelog |
| 871 |
<https://cryptography.io/en/latest/changelog/>`_ for details on what may |
| 872 |
change when you upgrade; for the most part the only changes involved |
| 873 |
dropping older Python versions (such as 2.6, 3.3, or some PyPy editions) |
| 874 |
which Paramiko itself has already dropped. |
| 875 |
|
| 876 |
- :support:`1378 backported` Add support for the modern (as of Python 3.3) |
| 877 |
import location of ``MutableMapping`` (used in host key management) to avoid |
| 878 |
the old location becoming deprecated in Python 3.8. Thanks to Josh Karpel for |
| 879 |
catch & patch. |
| 880 |
- :release:`2.4.2 <2018-09-18>` |
| 881 |
- :release:`2.3.3 <2018-09-18>` |
| 882 |
- :release:`2.2.4 <2018-09-18>` |
| 883 |
- :release:`2.1.6 <2018-09-18>` |
| 884 |
- :release:`2.0.9 <2018-09-18>` |
| 885 |
- :bug:`-` Modify protocol message handling such that ``Transport`` does not |
| 886 |
respond to ``MSG_UNIMPLEMENTED`` with its own ``MSG_UNIMPLEMENTED``. This |
| 887 |
behavior probably didn't cause any outright errors, but it doesn't seem to |
| 888 |
conform to the RFCs and could cause (non-infinite) feedback loops in some |
| 889 |
scenarios (usually those involving Paramiko on both ends). |
| 890 |
- :bug:`1283` Fix exploit (CVE-2018-1000805) in Paramiko's server mode (**not** |
| 891 |
client mode) where hostile clients could trick the server into thinking they |
| 892 |
were authenticated without actually submitting valid authentication. |
| 893 |
|
| 894 |
Specifically, steps have been taken to start separating client and server |
| 895 |
related message types in the message handling tables within ``Transport`` and |
| 896 |
``AuthHandler``; this work is not complete but enough has been performed to |
| 897 |
close off this particular exploit (which was the only obvious such exploit |
| 898 |
for this particular channel). |
| 899 |
|
| 900 |
Thanks to Daniel Hoffman for the detailed report. |
| 901 |
- :support:`1292 backported (<2.4)` Backport changes from :issue:`979` (added |
| 902 |
in Paramiko |
| 903 |
2.3) to Paramiko 2.0-2.2, using duck-typing to preserve backwards |
| 904 |
compatibility. This allows these older versions to use newer Cryptography |
| 905 |
sign/verify APIs when available, without requiring them (as is the case with |
| 906 |
Paramiko 2.3+). |
| 907 |
|
| 908 |
Practically speaking, this change prevents spamming of |
| 909 |
``CryptographyDeprecationWarning`` notices which pop up in the above scenario |
| 910 |
(older Paramiko, newer Cryptography). |
| 911 |
|
| 912 |
.. note:: |
| 913 |
This is a no-op for Paramiko 2.3+, which have required newer Cryptography |
| 914 |
releases since they were released. |
| 915 |
|
| 916 |
- :support:`1291 backported (<2.4)` Backport pytest support and application of |
| 917 |
the ``black`` code formatter (both of which previously only existed in the |
| 918 |
2.4 branch and above) to everything 2.0 and newer. This makes back/forward |
| 919 |
porting bugfixes significantly easier. |
| 920 |
- :support:`1262 backported` Add ``*.pub`` files to the MANIFEST so distributed |
| 921 |
source packages contain some necessary test assets. Credit: Alexander |
| 922 |
Kapshuna. |
| 923 |
- :feature:`1212` Updated `SSHConfig.lookup <paramiko.config.SSHConfig.lookup>` |
| 924 |
so it returns a new, type-casting-friendly dict subclass |
| 925 |
(`~paramiko.config.SSHConfigDict`) in lieu of dict literals. This ought to be |
| 926 |
backwards compatible, and allows an easier way to check boolean or int type |
| 927 |
``ssh_config`` values. Thanks to Chris Rose for the patch. |
| 928 |
- :support:`1191` Update our install docs with (somewhat) recently added |
| 929 |
additional dependencies; we previously only required Cryptography, but the |
| 930 |
docs never got updated after we incurred ``bcrypt`` and ``pynacl`` |
| 931 |
requirements for Ed25519 key support. |
| 932 |
|
| 933 |
Additionally, ``pyasn1`` was never actually hard-required; it was necessary |
| 934 |
during a development branch, and is used by the optional GSSAPI support, but |
| 935 |
is not required for regular installation. Thus, it has been removed from our |
| 936 |
``setup.py`` and its imports in the GSSAPI code made optional. |
| 937 |
|
| 938 |
Credit to ``@stevenwinfield`` for highlighting the outdated install docs. |
| 939 |
- :release:`2.4.1 <2018-03-12>` |
| 940 |
- :release:`2.3.2 <2018-03-12>` |
| 941 |
- :release:`2.2.3 <2018-03-12>` |
| 942 |
- :release:`2.1.5 <2018-03-12>` |
| 943 |
- :release:`2.0.8 <2018-03-12>` |
| 944 |
- :release:`1.18.5 <2018-03-12>` |
| 945 |
- :release:`1.17.6 <2018-03-12>` |
| 946 |
- :bug:`1175 (1.17+)` Fix a security flaw (CVE-2018-7750) in Paramiko's server |
| 947 |
mode (emphasis on **server** mode; this does **not** impact *client* use!) |
| 948 |
where authentication status was not checked before processing channel-open |
| 949 |
and other requests typically only sent after authenticating. Big thanks to |
| 950 |
Matthijs Kooijman for the report. |
| 951 |
- :bug:`1168` Add newer key classes for Ed25519 and ECDSA to |
| 952 |
``paramiko.__all__`` so that code introspecting that attribute, or using |
| 953 |
``from paramiko import *`` (such as some IDEs) sees them. Thanks to |
| 954 |
``@patriksevallius`` for the patch. |
| 955 |
- :bug:`1039` Ed25519 auth key decryption raised an unexpected exception when |
| 956 |
given a unicode password string (typical in python 3). Report by Theodor van |
| 957 |
Nahl and fix by Pierce Lopez. |
| 958 |
- :release:`2.4.0 <2017-11-14>` |
| 959 |
- :feature:`-` Add a new ``passphrase`` kwarg to `SSHClient.connect |
| 960 |
<paramiko.client.SSHClient.connect>` so users may disambiguate key-decryption |
| 961 |
passphrases from password-auth passwords. (This is a backwards compatible |
| 962 |
change; ``password`` will still pull double duty as a passphrase when |
| 963 |
``passphrase`` is not given.) |
| 964 |
- :support:`-` Update ``tearDown`` of client test suite to avoid hangs due to |
| 965 |
eternally blocking ``accept()`` calls on the internal server thread (which |
| 966 |
can occur when test code raises an exception before actually connecting to |
| 967 |
the server.) |
| 968 |
- :bug:`1108 (1.17+)` Rename a private method keyword argument (which was named |
| 969 |
``async``) so that we're compatible with the upcoming Python 3.7 release |
| 970 |
(where ``async`` is a new keyword.) Thanks to ``@vEpiphyte`` for the report. |
| 971 |
- :support:`1100` Updated the test suite & related docs/metadata/config to be |
| 972 |
compatible with pytest instead of using the old, custom, crufty |
| 973 |
unittest-based ``test.py``. |
| 974 |
|
| 975 |
This includes marking known-slow tests (mostly the SFTP ones) so they can be |
| 976 |
filtered out by ``inv test``'s default behavior; as well as other minor |
| 977 |
tweaks to test collection and/or display (for example, GSSAPI tests are |
| 978 |
collected, but skipped, instead of not even being collected by default as in |
| 979 |
``test.py``.) |
| 980 |
- :support:`- backported` Include LICENSE file in wheel archives. |
| 981 |
- :support:`1070` Drop Python 2.6 and Python 3.3 support; now only 2.7 and 3.4+ |
| 982 |
are supported. If you're unable to upgrade from 2.6 or 3.3, please stick to |
| 983 |
the Paramiko 2.3.x (or below) release lines. |
| 984 |
- :release:`2.3.1 <2017-09-22>` |
| 985 |
- :bug:`1071` Certificate support broke the no-certificate case for Ed25519 |
| 986 |
keys (symptom is an ``AttributeError`` about ``public_blob``.) This went |
| 987 |
uncaught due to cert autoload behavior (i.e. our test suite never actually |
| 988 |
ran the no-cert case, because the cert existed!) Both issues have been fixed. |
| 989 |
Thanks to John Hu for the report. |
| 990 |
- :release:`2.3.0 <2017-09-18>` |
| 991 |
- :release:`2.2.2 <2017-09-18>` |
| 992 |
- :release:`2.1.4 <2017-09-18>` |
| 993 |
- :release:`2.0.7 <2017-09-18>` |
| 994 |
- :release:`1.18.4 <2017-09-18>` |
| 995 |
- :bug:`1065` Add rekeying support to GSSAPI connections, which was erroneously |
| 996 |
missing. Without this fix, any attempt to renegotiate the transport keys for |
| 997 |
a ``gss-kex``-authed `~paramiko.transport.Transport` would cause a MIC |
| 998 |
failure and terminate the connection. Thanks to Sebastian Deiß and Anselm |
| 999 |
Kruis for the patch. |
| 1000 |
- :feature:`1063` Add a ``gss_trust_dns`` option to ``Client`` and |
| 1001 |
``Transport`` to allow explicitly setting whether or not DNS canonicalization |
| 1002 |
should occur when using GSSAPI. Thanks to Richard E. Silverman for the report |
| 1003 |
& Sebastian Deiß for initial patchset. |
| 1004 |
- :bug:`1061` Clean up GSSAPI authentication procedures so they do not prevent |
| 1005 |
normal fallback to other authentication methods on failure. (In other words, |
| 1006 |
presence of GSSAPI functionality on a target server precluded use of _any_ |
| 1007 |
other auth type if the user was unable to pass GSSAPI auth.) Patch via Anselm |
| 1008 |
Kruis. |
| 1009 |
- :bug:`1060` Fix key exchange (kex) algorithm list for GSSAPI authentication; |
| 1010 |
previously, the list used solely out-of-date algorithms, and now contains |
| 1011 |
newer ones listed preferentially before the old. Credit: Anselm Kruis. |
| 1012 |
- :bug:`1055 (1.17+)` (also :issue:`1056`, :issue:`1057`, :issue:`1058`, |
| 1013 |
:issue:`1059`) Fix up host-key checking in our GSSAPI support, which was |
| 1014 |
previously using an incorrect API call. Thanks to Anselm Kruis for the |
| 1015 |
patches. |
| 1016 |
- :bug:`945 (1.18+)` (backport of :issue:`910` and re: :issue:`865`) SSHClient |
| 1017 |
now requests the type of host key it has (e.g. from known_hosts) and does not |
| 1018 |
consider a different type to be a "Missing" host key. This fixes a common |
| 1019 |
case where an ECDSA key is in known_hosts and the server also has an RSA host |
| 1020 |
key. Thanks to Pierce Lopez. |
| 1021 |
- :support:`979` Update how we use `Cryptography <https://cryptography.io>`_'s |
| 1022 |
signature/verification methods so we aren't relying on a deprecated API. |
| 1023 |
Thanks to Paul Kehrer for the patch. |
| 1024 |
|
| 1025 |
.. warning:: |
| 1026 |
This bumps the minimum Cryptography version from 1.1 to 1.5. Such an |
| 1027 |
upgrade should be backwards compatible and easy to do. See `their changelog |
| 1028 |
<https://cryptography.io/en/latest/changelog/>`_ for additional details. |
| 1029 |
- :support:`-` Ed25519 keys never got proper API documentation support; this |
| 1030 |
has been fixed. |
| 1031 |
- :feature:`1026` Update `~paramiko.ed25519key.Ed25519Key` so its constructor |
| 1032 |
offers the same ``file_obj`` parameter as its sibling key classes. Credit: |
| 1033 |
Michal Kuffa. |
| 1034 |
- :feature:`1013` Added pre-authentication banner support for the server |
| 1035 |
interface (`ServerInterface.get_banner |
| 1036 |
<paramiko.server.ServerInterface.get_banner>` plus related support in |
| 1037 |
``Transport/AuthHandler``.) Patch courtesy of Dennis Kaarsemaker. |
| 1038 |
- :bug:`60 major` (via :issue:`1037`) Paramiko originally defaulted to zlib |
| 1039 |
compression level 9 (when one connects with ``compression=True``; it defaults |
| 1040 |
to off.) This has been found to be quite wasteful and tends to cause much |
| 1041 |
longer transfers in most cases, than is necessary. |
| 1042 |
|
| 1043 |
OpenSSH defaults to compression level 6, which is a much more reasonable |
| 1044 |
setting (nearly identical compression characteristics but noticeably, |
| 1045 |
sometimes significantly, faster transmission); Paramiko now uses this value |
| 1046 |
instead. |
| 1047 |
|
| 1048 |
Thanks to Damien Dubé for the report and ``@DrNeutron`` for investigating & |
| 1049 |
submitting the patch. |
| 1050 |
- :support:`-` Display exception type and message when logging auth-rejection |
| 1051 |
messages (ones reading ``Auth rejected: unsupported or mangled public key``); |
| 1052 |
previously this error case had a bare except and did not display exactly why |
| 1053 |
the key failed. It will now append info such as ``KeyError: |
| 1054 |
'some-unknown-type-string'`` or similar. |
| 1055 |
- :feature:`1042` (also partially :issue:`531`) Implement basic client-side |
| 1056 |
certificate authentication (as per the OpenSSH vendor extension.) |
| 1057 |
|
| 1058 |
The core implementation is `PKey.load_certificate |
| 1059 |
<paramiko.pkey.PKey.load_certificate>` and its corresponding ``.public_blob`` |
| 1060 |
attribute on key objects, which is honored in the auth and transport modules. |
| 1061 |
Additionally, `SSHClient.connect <paramiko.client.SSHClient.connect>` will |
| 1062 |
now automatically load certificate data alongside private key data when one |
| 1063 |
has appropriately-named cert files (e.g. ``id_rsa-cert.pub``) - see its |
| 1064 |
docstring for details. |
| 1065 |
|
| 1066 |
Thanks to Jason Rigby for a first draft (:issue:`531`) and to Paul Kapp for |
| 1067 |
the second draft, upon which the current functionality has been based (with |
| 1068 |
modifications.) |
| 1069 |
|
| 1070 |
.. note:: |
| 1071 |
This support is client-focused; Paramiko-driven server code is capable of |
| 1072 |
handling cert-bearing pubkey auth packets, *but* it does not interpret any |
| 1073 |
cert-specific fields, so the end result is functionally identical to a |
| 1074 |
vanilla pubkey auth process (and thus requires e.g. prepopulated |
| 1075 |
authorized-keys data.) We expect full server-side cert support to follow |
| 1076 |
later. |
| 1077 |
|
| 1078 |
- :support:`1041` Modify logic around explicit disconnect |
| 1079 |
messages, and unknown-channel situations, so that they rely on centralized |
| 1080 |
shutdown code instead of running their own. This is at worst removing some |
| 1081 |
unnecessary code, and may help with some situations where Paramiko hangs at |
| 1082 |
the end of a session. Thanks to Paul Kapp for the patch. |
| 1083 |
- :support:`1012` (via :issue:`1016`) Enhance documentation around the new |
| 1084 |
`SFTP.posix_rename <paramiko.sftp_client.SFTPClient.posix_rename>` method so |
| 1085 |
it's referenced in the 'standard' ``rename`` method for increased visibility. |
| 1086 |
Thanks to Marius Flage for the report. |
| 1087 |
- :release:`2.2.1 <2017-06-13>` |
| 1088 |
- :bug:`993` Ed25519 host keys were not comparable/hashable, causing an |
| 1089 |
exception if such a key existed in a ``known_hosts`` file. Thanks to Oleh |
| 1090 |
Prypin for the report and Pierce Lopez for the fix. |
| 1091 |
- :bug:`990` The (added in 2.2.0) ``bcrypt`` dependency should have been on |
| 1092 |
version 3.1.3 or greater (was initially set to 3.0.0 or greater.) Thanks to |
| 1093 |
Paul Howarth for the report. |
| 1094 |
- :release:`2.2.0 <2017-06-09>` |
| 1095 |
- :release:`2.1.3 <2017-06-09>` |
| 1096 |
- :release:`2.0.6 <2017-06-09>` |
| 1097 |
- :release:`1.18.3 <2017-06-09>` |
| 1098 |
- :release:`1.17.5 <2017-06-09>` |
| 1099 |
- :bug:`865` SSHClient now requests the type of host key it has (e.g. from |
| 1100 |
known_hosts) and does not consider a different type to be a "Missing" host |
| 1101 |
key. This fixes a common case where an ECDSA key is in known_hosts and the |
| 1102 |
server also has an RSA host key. Thanks to Pierce Lopez. |
| 1103 |
- :support:`906 (1.18+)` Clean up a handful of outdated imports and related |
| 1104 |
tweaks. Thanks to Pierce Lopez. |
| 1105 |
- :bug:`984` Enhance default cipher preference order such that |
| 1106 |
``aes(192|256)-cbc`` are preferred over ``blowfish-cbc``. Thanks to Alex |
| 1107 |
Gaynor. |
| 1108 |
- :bug:`971 (1.17+)` Allow any type implementing the buffer API to be used with |
| 1109 |
`BufferedFile <paramiko.file.BufferedFile>`, `Channel |
| 1110 |
<paramiko.channel.Channel>`, and `SFTPFile <paramiko.sftp_file.SFTPFile>`. |
| 1111 |
This resolves a regression introduced in 1.13 with the Python 3 porting |
| 1112 |
changes, when using types such as ``memoryview``. Credit: Martin Packman. |
| 1113 |
- :bug:`741` (also :issue:`809`, :issue:`772`; all via :issue:`912`) Writing |
| 1114 |
encrypted/password-protected private key files was silently broken since 2.0 |
| 1115 |
due to an incorrect API call; this has been fixed. |
| 1116 |
|
| 1117 |
Includes a directly related fix, namely adding the ability to read |
| 1118 |
``AES-256-CBC`` ciphered private keys (which is now what we tend to write out |
| 1119 |
as it is Cryptography's default private key cipher.) |
| 1120 |
|
| 1121 |
Thanks to ``@virlos`` for the original report, Chris Harris and ``@ibuler`` |
| 1122 |
for initial draft PRs, and ``@jhgorrell`` for the final patch. |
| 1123 |
- :feature:`65` (via :issue:`471`) Add support for OpenSSH's SFTP |
| 1124 |
``posix-rename`` protocol extension (section 3.3 of `OpenSSH's protocol |
| 1125 |
extension document |
| 1126 |
<http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL?rev=1.31>`_), |
| 1127 |
via a new ``posix_rename`` method in `SFTPClient |
| 1128 |
<paramiko.sftp_client.SFTPClient.posix_rename>` and `SFTPServerInterface |
| 1129 |
<paramiko.sftp_si.SFTPServerInterface.posix_rename>`. Thanks to Wren Turkal |
| 1130 |
for the initial patch & Mika Pflüger for the enhanced, merged PR. |
| 1131 |
- :feature:`869` Add an ``auth_timeout`` kwarg to `SSHClient.connect |
| 1132 |
<paramiko.client.SSHClient.connect>` (default: 30s) to avoid hangs when the |
| 1133 |
remote end becomes unresponsive during the authentication step. Credit to |
| 1134 |
``@timsavage``. |
| 1135 |
|
| 1136 |
.. note:: |
| 1137 |
This technically changes behavior, insofar as very slow auth steps >30s |
| 1138 |
will now cause timeout exceptions instead of completing. We doubt most |
| 1139 |
users will notice; those affected can simply give a higher value to |
| 1140 |
``auth_timeout``. |
| 1141 |
|
| 1142 |
- :support:`921` Tighten up the ``__hash__`` implementation for various key |
| 1143 |
classes; less code is good code. Thanks to Francisco Couzo for the patch. |
| 1144 |
- :support:`956 backported (1.17+)` Switch code coverage service from |
| 1145 |
coveralls.io to codecov.io (& then disable the latter's auto-comments.) |
| 1146 |
Thanks to Nikolai Røed Kristiansen for the patch. |
| 1147 |
- :bug:`983` Move ``sha1`` above the now-arguably-broken ``md5`` in the list of |
| 1148 |
preferred MAC algorithms, as an incremental security improvement for users |
| 1149 |
whose target systems offer both. Credit: Pierce Lopez. |
| 1150 |
- :bug:`667` The RC4/arcfour family of ciphers has been broken since version |
| 1151 |
2.0; but since the algorithm is now known to be completely insecure, we are |
| 1152 |
opting to remove support outright instead of fixing it. Thanks to Alex Gaynor |
| 1153 |
for catch & patch. |
| 1154 |
- :feature:`857` Allow `SSHClient.set_missing_host_key_policy |
| 1155 |
<paramiko.client.SSHClient.set_missing_host_key_policy>` to accept policy |
| 1156 |
classes _or_ instances, instead of only instances, thus fixing a |
| 1157 |
long-standing gotcha for unaware users. |
| 1158 |
- :feature:`951` Add support for ECDH key exchange (kex), specifically the |
| 1159 |
algorithms ``ecdh-sha2-nistp256``, ``ecdh-sha2-nistp384``, and |
| 1160 |
``ecdh-sha2-nistp521``. They now come before the older ``diffie-hellman-*`` |
| 1161 |
family of kex algorithms in the preferred-kex list. Thanks to Shashank |
| 1162 |
Veerapaneni for the patch & Pierce Lopez for a follow-up. |
| 1163 |
- :support:`- backported` A big formatting pass to clean up an enormous number |
| 1164 |
of invalid Sphinx reference links, discovered by switching to a modern, |
| 1165 |
rigorous nitpicking doc-building mode. |
| 1166 |
- :bug:`900` (via :issue:`911`) Prefer newer ``ecdsa-sha2-nistp`` keys over RSA |
| 1167 |
and DSA keys during host key selection. This improves compatibility with |
| 1168 |
OpenSSH, both in terms of general behavior, and also re: ability to properly |
| 1169 |
leverage OpenSSH-modified ``known_hosts`` files. Credit: ``@kasdoe`` for |
| 1170 |
original report/PR and Pierce Lopez for the second draft. |
| 1171 |
- :bug:`794` (via :issue:`981`) Prior support for ``ecdsa-sha2-nistp(384|521)`` |
| 1172 |
algorithms didn't fully extend to covering host keys, preventing connection |
| 1173 |
to hosts which only offer these key types and no others. This is now fixed. |
| 1174 |
Thanks to ``@ncoult`` and ``@kasdoe`` for reports and Pierce Lopez for the |
| 1175 |
patch. |
| 1176 |
- :feature:`325` (via :issue:`972`) Add Ed25519 support, for both host keys |
| 1177 |
and user authentication. Big thanks to Alex Gaynor for the patch. |
| 1178 |
|
| 1179 |
.. note:: |
| 1180 |
This change adds the ``bcrypt`` and ``pynacl`` Python libraries as |
| 1181 |
dependencies. No C-level dependencies beyond those previously required (for |
| 1182 |
Cryptography) have been added. |
| 1183 |
|
| 1184 |
- :support:`974 backported` Overhaul the codebase to be PEP-8, etc, compliant |
| 1185 |
(i.e. passes the maintainer's preferred `flake8 <http://flake8.pycqa.org/>`_ |
| 1186 |
configuration) and add a ``flake8`` step to the Travis config. Big thanks to |
| 1187 |
Dorian Pula! |
| 1188 |
- :bug:`949 (1.17+)` SSHClient and Transport could cause a memory leak if |
| 1189 |
there's a connection problem or protocol error, even if ``Transport.close()`` |
| 1190 |
is called. Thanks Kyle Agronick for the discovery and investigation, and |
| 1191 |
Pierce Lopez for assistance. |
| 1192 |
- :bug:`683 (1.17+)` Make ``util.log_to_file`` append instead of replace. |
| 1193 |
Thanks to ``@vlcinsky`` for the report. |
| 1194 |
- :release:`2.1.2 <2017-02-20>` |
| 1195 |
- :release:`2.0.5 <2017-02-20>` |
| 1196 |
- :release:`1.18.2 <2017-02-20>` |
| 1197 |
- :release:`1.17.4 <2017-02-20>` |
| 1198 |
- :bug:`853 (1.17+)` Tweak how `RSAKey.__str__ <paramiko.rsakey.RSAKey>` |
| 1199 |
behaves so it doesn't cause ``TypeError`` under Python 3. Thanks to Francisco |
| 1200 |
Couzo for the report. |
| 1201 |
- :bug:`862 (1.17+)` (via :issue:`863`) Avoid test suite exceptions on |
| 1202 |
platforms lacking ``errno.ETIME`` (which seems to be some FreeBSD and some |
| 1203 |
Windows environments.) Thanks to Sofian Brabez. |
| 1204 |
- :bug:`44 (1.17+)` (via :issue:`891`) `SSHClient <paramiko.client.SSHClient>` |
| 1205 |
now gives its internal `Transport <paramiko.transport.Transport>` a handle on |
| 1206 |
itself, preventing garbage collection of the client until the session is |
| 1207 |
closed. Without this, some code which returns stream or transport objects |
| 1208 |
without the client that generated them, would result in premature session |
| 1209 |
closure when the client was GCd. Credit: ``@w31rd0`` for original report, |
| 1210 |
Omer Anson for the patch. |
| 1211 |
- :bug:`713 (<2.0)` (via :issue:`714` and :issue:`889`) Don't pass |
| 1212 |
initialization vectors to PyCrypto when dealing with counter-mode ciphers; |
| 1213 |
newer PyCrypto versions throw an exception otherwise (older ones simply |
| 1214 |
ignored this parameter altogether). Thanks to ``@jmh045000`` for report & |
| 1215 |
patches. |
| 1216 |
- :bug:`895 (1.17+)` Fix a bug in server-mode concerning multiple interactive |
| 1217 |
auth steps (which were incorrectly responded to). Thanks to Dennis |
| 1218 |
Kaarsemaker for catch & patch. |
| 1219 |
- :support:`866 backported (1.17+)` (also :issue:`838`) Remove an old |
| 1220 |
test-related file we don't support, and add PyPy to Travis-CI config. Thanks |
| 1221 |
to Pierce Lopez for the final patch and Pedro Rodrigues for an earlier |
| 1222 |
edition. |
| 1223 |
- :release:`2.1.1 <2016-12-12>` |
| 1224 |
- :release:`2.0.4 <2016-12-12>` |
| 1225 |
- :release:`1.18.1 <2016-12-12>` |
| 1226 |
- :bug:`859 (1.18+)` (via :issue:`860`) A tweak to the original patch |
| 1227 |
implementing :issue:`398` was not fully applied, causing calls to |
| 1228 |
`~paramiko.client.SSHClient.invoke_shell` to fail with ``AttributeError``. |
| 1229 |
This has been fixed. Patch credit: Kirk Byers. |
| 1230 |
- :bug:`-` Accidentally merged the new features from 1.18.0 into the |
| 1231 |
2.0.x bugfix-only branch. This included merging a bug in one of those new |
| 1232 |
features (breaking `~paramiko.client.SSHClient.invoke_shell` with an |
| 1233 |
``AttributeError``.) The offending code has been stripped out of the 2.0.x |
| 1234 |
line (but of course, remains in 2.1.x and above.) |
| 1235 |
- :bug:`859` (via :issue:`860`) A tweak to the original patch implementing |
| 1236 |
:issue:`398` was not fully applied, causing calls to |
| 1237 |
`~paramiko.client.SSHClient.invoke_shell` to fail with ``AttributeError``. |
| 1238 |
This has been fixed. Patch credit: Kirk Byers. |
| 1239 |
- :release:`2.1.0 <2016-12-09>` |
| 1240 |
- :release:`2.0.3 <2016-12-09>` |
| 1241 |
- :release:`1.18.0 <2016-12-09>` |
| 1242 |
- :release:`1.17.3 <2016-12-09>` |
| 1243 |
- :bug:`802 (1.17+)` (via :issue:`804`) Update our vendored Windows API module |
| 1244 |
to address errors of the form ``AttributeError: 'module' object has no |
| 1245 |
attribute 'c_ssize_t'``. Credit to Jason R. Coombs. |
| 1246 |
- :bug:`824 (1.17+)` Fix the implementation of ``PKey.write_private_key_file`` |
| 1247 |
(this method is only publicly defined on subclasses; the fix was in the |
| 1248 |
private real implementation) so it passes the correct params to ``open()``. |
| 1249 |
This bug apparently went unnoticed and unfixed for 12 entire years. Congrats |
| 1250 |
to John Villalovos for noticing & submitting the patch! |
| 1251 |
- :support:`801 backported (1.17+)` Skip a Unix-only test when on Windows; |
| 1252 |
thanks to Gabi Davar. |
| 1253 |
- :support:`792 backported (1.17+)` Minor updates to the README and demos; |
| 1254 |
thanks to Alan Yee. |
| 1255 |
- :feature:`780 (1.18+)` (also :issue:`779`, and may help users affected by |
| 1256 |
:issue:`520`) Add an optional ``timeout`` parameter to |
| 1257 |
`Transport.start_client <paramiko.transport.Transport.start_client>` (and |
| 1258 |
feed it the value of the configured connection timeout when used within |
| 1259 |
`SSHClient <paramiko.client.SSHClient>`.) This helps prevent situations where |
| 1260 |
network connectivity isn't timing out, but the remote server is otherwise |
| 1261 |
unable to service the connection in a timely manner. Credit to |
| 1262 |
``@sanseihappa``. |
| 1263 |
- :bug:`742` (also re: :issue:`559`) Catch ``AssertionError`` thrown by |
| 1264 |
Cryptography when attempting to load bad ECDSA keys, turning it into an |
| 1265 |
``SSHException``. This moves the behavior in line with other "bad keys" |
| 1266 |
situations, re: Paramiko's main auth loop. Thanks to MengHuan Yu for the |
| 1267 |
patch. |
| 1268 |
- :bug:`789 (1.17+)` Add a missing ``.closed`` attribute (plus ``._closed`` |
| 1269 |
because reasons) to `ProxyCommand <paramiko.proxy.ProxyCommand>` so the |
| 1270 |
earlier partial fix for :issue:`520` works in situations where one is |
| 1271 |
gatewaying via ``ProxyCommand``. |
| 1272 |
- :bug:`334 (1.17+)` Make the ``subprocess`` import in ``proxy.py`` lazy so |
| 1273 |
users on platforms without it (such as Google App Engine) can import Paramiko |
| 1274 |
successfully. (Relatedly, make it easier to tweak an active socket check |
| 1275 |
timeout [in `Transport <paramiko.transport.Transport>`] which was previously |
| 1276 |
hardcoded.) Credit: Shinya Okano. |
| 1277 |
- :support:`854 backported (1.17+)` Fix incorrect docstring/param-list for |
| 1278 |
`Transport.auth_gssapi_keyex |
| 1279 |
<paramiko.transport.Transport.auth_gssapi_keyex>` so it matches the real |
| 1280 |
signature. Caught by ``@Score_Under``. |
| 1281 |
- :bug:`681 (1.17+)` Fix a Python3-specific bug re: the handling of read |
| 1282 |
buffers when using ``ProxyCommand``. Thanks to Paul Kapp for catch & patch. |
| 1283 |
- :feature:`398 (1.18+)` Add an ``environment`` dict argument to |
| 1284 |
`Client.exec_command <paramiko.client.SSHClient.exec_command>` (plus the |
| 1285 |
lower level `Channel.update_environment |
| 1286 |
<paramiko.channel.Channel.update_environment>` and |
| 1287 |
`Channel.set_environment_variable |
| 1288 |
<paramiko.channel.Channel.set_environment_variable>` methods) which |
| 1289 |
implements the ``env`` SSH message type. This means the remote shell |
| 1290 |
environment can be set without the use of ``VARNAME=value`` shell tricks, |
| 1291 |
provided the server's ``AcceptEnv`` lists the variables you need to set. |
| 1292 |
Thanks to Philip Lorenz for the pull request. |
| 1293 |
- :support:`819 backported (>=1.15,<2.0)` Document how lacking ``gmp`` headers |
| 1294 |
at install time can cause a significant performance hit if you build PyCrypto |
| 1295 |
from source. (Most system-distributed packages already have this enabled.) |
| 1296 |
- :release:`2.0.2 <2016-07-25>` |
| 1297 |
- :release:`1.17.2 <2016-07-25>` |
| 1298 |
- :release:`1.16.3 <2016-07-25>` |
| 1299 |
- :bug:`673 (1.16+)` (via :issue:`681`) Fix protocol banner read errors |
| 1300 |
(``SSHException``) which would occasionally pop up when using |
| 1301 |
``ProxyCommand`` gatewaying. Thanks to ``@Depado`` for the initial report and |
| 1302 |
Paul Kapp for the fix. |
| 1303 |
- :bug:`774 (1.16+)` Add a ``_closed`` private attribute to |
| 1304 |
`~paramiko.channel.Channel` objects so that they continue functioning when |
| 1305 |
used as proxy sockets under Python 3 (e.g. as ``direct-tcpip`` gateways for |
| 1306 |
other Paramiko connections.) |
| 1307 |
- :bug:`758 (1.16+)` Apply type definitions to ``_winapi`` module from |
| 1308 |
`jaraco.windows <https://github.com/jaraco/jaraco.windows>`_ 3.6.1. This |
| 1309 |
should address issues on Windows platforms that often result in errors like |
| 1310 |
``ArgumentError: [...] int too long to convert``. Thanks to ``@swohlerLL`` |
| 1311 |
for the report and Jason R. Coombs for the patch. |
| 1312 |
- :release:`2.0.1 <2016-06-21>` |
| 1313 |
- :release:`1.17.1 <2016-06-21>` |
| 1314 |
- :release:`1.16.2 <2016-06-21>` |
| 1315 |
- :bug:`520 (1.16+)` (Partial fix) Fix at least one instance of race condition |
| 1316 |
driven threading hangs at end of the Python interpreter session. (Includes a |
| 1317 |
docs update as well - always make sure to ``.close()`` your clients!) |
| 1318 |
- :bug:`537 (1.16+)` Fix a bug in `BufferedPipe.set_event |
| 1319 |
<paramiko.buffered_pipe.BufferedPipe.set_event>` which could cause |
| 1320 |
deadlocks/hangs when one uses `select.select` against |
| 1321 |
`~paramiko.channel.Channel` objects (or otherwise calls `Channel.fileno |
| 1322 |
<paramiko.channel.Channel.fileno>` after the channel has closed). Thanks to |
| 1323 |
Przemysław Strzelczak for the report & reproduction case, and to Krzysztof |
| 1324 |
Rusek for the fix. |
| 1325 |
- :release:`2.0.0 <2016-04-28>` |
| 1326 |
- :release:`1.17.0 <2016-04-28>` |
| 1327 |
- :release:`1.16.1 <2016-04-28>` |
| 1328 |
- :release:`1.15.5 <2016-04-28>` |
| 1329 |
- :feature:`731` (working off the earlier :issue:`611`) Add support for 384- |
| 1330 |
and 512-bit elliptic curve groups in ECDSA key types (aka |
| 1331 |
``ecdsa-sha2-nistp384`` / ``ecdsa-sha2-nistp521``). Thanks to Michiel Tiller |
| 1332 |
and ``@CrazyCasta`` for the patches. |
| 1333 |
- :bug:`670` Due to an earlier bugfix, less-specific ``Host`` blocks' |
| 1334 |
``ProxyCommand`` values were overriding ``ProxyCommand none`` in |
| 1335 |
more-specific ``Host`` blocks. This has been fixed in a backwards compatible |
| 1336 |
manner (i.e. ``ProxyCommand none`` continues to appear as a total lack of any |
| 1337 |
``proxycommand`` key in parsed config structures). Thanks to Pat Brisbin for |
| 1338 |
the catch. |
| 1339 |
- :bug:`676` (via :issue:`677`) Fix a backwards incompatibility issue that |
| 1340 |
cropped up in `SFTPFile.prefetch <paramiko.sftp_file.SFTPFile.prefetch>` re: |
| 1341 |
the erroneously non-optional ``file_size`` parameter. Should only affect |
| 1342 |
users who manually call ``prefetch``. Thanks to ``@stevevanhooser`` for catch |
| 1343 |
& patch. |
| 1344 |
- :feature:`394` Replace PyCrypto with the Python Cryptographic Authority |
| 1345 |
(PyCA) 'Cryptography' library suite. This improves security, installability, |
| 1346 |
and performance; adds PyPy support; and much more. |
| 1347 |
|
| 1348 |
There aren't enough ways to thank Alex Gaynor for all of his work on this, |
| 1349 |
and then his patience while the maintainer let his PR grow moss for a year |
| 1350 |
and change. Paul Kehrer came in with an assist, and I think I saw Olle |
| 1351 |
Lundberg, ``@techtonik`` and ``@johnthagen`` supplying backup as well. Thanks |
| 1352 |
to all! |
| 1353 |
|
| 1354 |
.. warning:: |
| 1355 |
**This is a backwards incompatible change.** |
| 1356 |
|
| 1357 |
However, **it should only affect installation** requirements; **no API |
| 1358 |
changes are intended or expected**. Please report any such breakages as |
| 1359 |
bugs. |
| 1360 |
|
| 1361 |
See our updated :doc:`installation docs <installing>` for details on what |
| 1362 |
is now required to install Paramiko; many/most users should be able to |
| 1363 |
simply ``pip install -U paramiko`` (especially if you **upgrade to pip |
| 1364 |
8**). |
| 1365 |
|
| 1366 |
- :bug:`577` (via :issue:`578`; should also fix :issue:`718`, :issue:`560`) Fix |
| 1367 |
stalled/hung SFTP downloads by cleaning up some threading lock issues. Thanks |
| 1368 |
to Stephen C. Pope for the patch. |
| 1369 |
- :bug:`716` Fix a Python 3 compatibility issue when handling two-factor |
| 1370 |
authentication. Thanks to Mateusz Kowalski for the catch & original patch. |
| 1371 |
- :support:`729 backported (>=1.15,<2.0)` Clean up ``setup.py`` to always use |
| 1372 |
``setuptools``, not doing so was a historical artifact from bygone days. |
| 1373 |
Thanks to Alex Gaynor. |
| 1374 |
- :bug:`649 major (==1.17)` Update the module in charge of handling SSH moduli |
| 1375 |
so it's consistent with OpenSSH behavior re: prime number selection. Thanks |
| 1376 |
to Damien Tournoud for catch & patch. |
| 1377 |
- :bug:`617` (aka `fabric/fabric#1429 |
| 1378 |
<https://github.com/fabric/fabric/issues/1429>`_; via :issue:`679`; related: |
| 1379 |
:issue:`678`, :issue:`685`, :issue:`615` & :issue:`616`) Fix up |
| 1380 |
`~paramiko.ssh_exception.NoValidConnectionsError` so it pickles correctly, |
| 1381 |
and fix a related Python 3 compatibility issue. Thanks to Rebecca Schlussel |
| 1382 |
for the report & Marius Gedminas for the patch. |
| 1383 |
- :bug:`613` (via :issue:`619`) Update to ``jaraco.windows`` 3.4.1 to fix some |
| 1384 |
errors related to ``ctypes`` on Windows platforms. Credit to Jason R. Coombs. |
| 1385 |
- :support:`621 backported (>=1.15,<2.0)` Annotate some public attributes on |
| 1386 |
`~paramiko.channel.Channel` such as ``.closed``. Thanks to Sergey Vasilyev |
| 1387 |
for the report. |
| 1388 |
- :bug:`632` Fix logic bug in the SFTP client's callback-calling functionality; |
| 1389 |
previously there was a chance the given callback would fire twice at the end |
| 1390 |
of a transfer. Thanks to ``@ab9-er`` for catch & original patch. |
| 1391 |
- :support:`612 backported (>=1.15,<2.0)` Identify & work around a race |
| 1392 |
condition in the test for handshake timeouts, which was causing frequent test |
| 1393 |
failures for a subset of contributors as well as Travis-CI (usually, but not |
| 1394 |
always, limited to Python 3.5). Props to Ed Kellett for assistance during |
| 1395 |
some of the troubleshooting. |
| 1396 |
- :support:`697 backported (>=1.15,<2.0)` Remove whitespace in our |
| 1397 |
``setup.py``'s ``install_requires`` as it triggers occasional bugs in some |
| 1398 |
versions of ``setuptools``. Thanks to Justin Lecher for catch & original |
| 1399 |
patch. |
| 1400 |
- :bug:`499` Strip trailing/leading whitespace from lines when parsing SSH |
| 1401 |
config files - this brings things in line with OpenSSH behavior. Thanks to |
| 1402 |
Alfredo Esteban for the original report and Nick Pillitteri for the patch. |
| 1403 |
- :bug:`652` Fix behavior of ``gssapi-with-mic`` auth requests so they fail |
| 1404 |
gracefully (allowing followup via other auth methods) instead of raising an |
| 1405 |
exception. Patch courtesy of ``@jamercee``. |
| 1406 |
- :feature:`588 (==1.17)` Add missing file-like object methods for |
| 1407 |
`~paramiko.file.BufferedFile` and `~paramiko.sftp_file.SFTPFile`. Thanks to |
| 1408 |
Adam Meily for the patch. |
| 1409 |
- :support:`636 backported (>=1.15,<2.0)` Clean up and enhance the README (and |
| 1410 |
rename it to ``README.rst`` from just ``README``). Thanks to ``@LucasRMehl``. |
| 1411 |
- :release:`1.16.0 <2015-11-04>` |
| 1412 |
- :bug:`194 major` (also :issue:`562`, :issue:`530`, :issue:`576`) Streamline |
| 1413 |
use of ``stat`` when downloading SFTP files via `SFTPClient.get |
| 1414 |
<paramiko.sftp_client.SFTPClient.get>`; this avoids triggering bugs in some |
| 1415 |
off-spec SFTP servers such as IBM Sterling. Thanks to ``@muraleee`` for the |
| 1416 |
initial report and to Torkil Gustavsen for the patch. |
| 1417 |
- :feature:`467` (also :issue:`139`, :issue:`412`) Fully enable two-factor |
| 1418 |
authentication (e.g. when a server requires ``AuthenticationMethods |
| 1419 |
pubkey,keyboard-interactive``). Thanks to ``@perryjrandall`` for the patch |
| 1420 |
and to ``@nevins-b`` and Matt Robenolt for additional support. |
| 1421 |
- :bug:`502 major` Fix 'exec' requests in server mode to use ``get_string`` |
| 1422 |
instead of ``get_text`` to avoid ``UnicodeDecodeError`` on non-UTF-8 input. |
| 1423 |
Thanks to Anselm Kruis for the patch & discussion. |
| 1424 |
- :bug:`401` Fix line number reporting in log output regarding invalid |
| 1425 |
``known_hosts`` line entries. Thanks to Dylan Thacker-Smith for catch & |
| 1426 |
patch. |
| 1427 |
- :support:`525 backported` Update the vendored Windows API addon to a more |
| 1428 |
recent edition. Also fixes :issue:`193`, :issue:`488`, :issue:`498`. Thanks |
| 1429 |
to Jason Coombs. |
| 1430 |
- :release:`1.15.4 <2015-11-02>` |
| 1431 |
- :release:`1.14.3 <2015-11-02>` |
| 1432 |
- :release:`1.13.4 <2015-11-02>` |
| 1433 |
- :bug:`366` Fix `~paramiko.sftp_attr.SFTPAttributes` so its string |
| 1434 |
representation doesn't raise exceptions on empty/initialized instances. Patch |
| 1435 |
by Ulrich Petri. |
| 1436 |
- :bug:`359` Use correct attribute name when trying to use Python 3's |
| 1437 |
``int.bit_length`` method; prior to fix, the Python 2 custom fallback |
| 1438 |
implementation was always used, even on Python 3. Thanks to Alex Gaynor. |
| 1439 |
- :support:`594 backported` Correct some post-Python3-port docstrings to |
| 1440 |
specify ``bytes`` type instead of ``str``. Credit to ``@redixin``. |
| 1441 |
- :bug:`565` Don't explode with ``IndexError`` when reading private key files |
| 1442 |
lacking an ``-----END <type> PRIVATE KEY-----`` footer. Patch courtesy of |
| 1443 |
Prasanna Santhanam. |
| 1444 |
- :feature:`604` Add support for the ``aes192-ctr`` and ``aes192-cbc`` ciphers. |
| 1445 |
Thanks to Michiel Tiller for noticing it was as easy as tweaking some key |
| 1446 |
sizes :D |
| 1447 |
- :feature:`356` (also :issue:`596`, :issue:`365`, :issue:`341`, :issue:`164`, |
| 1448 |
:issue:`581`, and a bunch of other duplicates besides) Add support for SHA-2 |
| 1449 |
based key exchange (kex) algorithm ``diffie-hellman-group-exchange-sha256`` |
| 1450 |
and (H)MAC algorithms ``hmac-sha2-256`` and ``hmac-sha2-512``. |
| 1451 |
|
| 1452 |
This change includes tweaks to debug-level logging regarding |
| 1453 |
algorithm-selection handshakes; the old all-in-one log line is now multiple |
| 1454 |
easier-to-read, printed-at-handshake-time log lines. |
| 1455 |
|
| 1456 |
Thanks to the many people who submitted patches for this functionality and/or |
| 1457 |
assisted in testing those patches. That list includes but is not limited to, |
| 1458 |
and in no particular order: Matthias Witte, Dag Wieers, Ash Berlin, Etienne |
| 1459 |
Perot, Gert van Dijk, ``@GuyShaanan``, Aaron Bieber, ``@cyphase``, and Eric |
| 1460 |
Brown. |
| 1461 |
- :release:`1.15.3 <2015-10-02>` |
| 1462 |
- :support:`554 backported` Fix inaccuracies in the docstring for the ECDSA key |
| 1463 |
class. Thanks to Jared Hance for the patch. |
| 1464 |
- :support:`516 backported` Document `~paramiko.agent.AgentRequestHandler`. |
| 1465 |
Thanks to ``@toejough`` for report & suggestions. |
| 1466 |
- :bug:`496 (1.15+)` Fix a handful of small but critical bugs in Paramiko's |
| 1467 |
GSSAPI support (note: this includes switching from PyCrypo's Random to |
| 1468 |
`os.urandom`). Thanks to Anselm Kruis for catch & patch. |
| 1469 |
- :bug:`491` (combines :issue:`62` and :issue:`439`) Implement timeout |
| 1470 |
functionality to address hangs from dropped network connections and/or failed |
| 1471 |
handshakes. Credit to ``@vazir`` and ``@dacut`` for the original patches and |
| 1472 |
to Olle Lundberg for reimplementation. |
| 1473 |
- :bug:`490` Skip invalid/unparsable lines in ``known_hosts`` files, instead |
| 1474 |
of raising `~paramiko.ssh_exception.SSHException`. This brings Paramiko's |
| 1475 |
behavior more in line with OpenSSH, which silently ignores such input. Catch |
| 1476 |
& patch courtesy of Martin Topholm. |
| 1477 |
- :bug:`404` Print details when displaying |
| 1478 |
`~paramiko.ssh_exception.BadHostKeyException` objects (expected vs received |
| 1479 |
data) instead of just "hey shit broke". Patch credit: Loic Dachary. |
| 1480 |
- :bug:`469` (also :issue:`488`, :issue:`461` and like a dozen others) Fix a |
| 1481 |
typo introduced in the 1.15 release which broke WinPageant support. Thanks to |
| 1482 |
everyone who submitted patches, and to Steve Cohen who was the lucky winner |
| 1483 |
of the cherry-pick lottery. |
| 1484 |
- :bug:`353` (via :issue:`482`) Fix a bug introduced in the Python 3 port |
| 1485 |
which caused ``OverFlowError`` (and other symptoms) in SFTP functionality. |
| 1486 |
Thanks to ``@dboreham`` for leading the troubleshooting charge, and to |
| 1487 |
Scott Maxwell for the final patch. |
| 1488 |
- :support:`582` Fix some old ``setup.py`` related helper code which was |
| 1489 |
breaking ``bdist_dumb`` on Mac OS X. Thanks to Peter Odding for the patch. |
| 1490 |
- :bug:`22 major` Try harder to connect to multiple network families (e.g. IPv4 |
| 1491 |
vs IPv6) in case of connection issues; this helps with problems such as hosts |
| 1492 |
which resolve both IPv4 and IPv6 addresses but are only listening on IPv4. |
| 1493 |
Thanks to Dries Desmet for original report and Torsten Landschoff for the |
| 1494 |
foundational patchset. |
| 1495 |
- :bug:`402` Check to see if an SSH agent is actually present before trying to |
| 1496 |
forward it to the remote end. This replaces what was usually a useless |
| 1497 |
``TypeError`` with a human-readable |
| 1498 |
`~paramiko.ssh_exception.AuthenticationException`. Credit to Ken Jordan for |
| 1499 |
the fix and Yvan Marques for original report. |
| 1500 |
- :release:`1.15.2 <2014-12-19>` |
| 1501 |
- :release:`1.14.2 <2014-12-19>` |
| 1502 |
- :release:`1.13.3 <2014-12-19>` |
| 1503 |
- :bug:`413` (also :issue:`414`, :issue:`420`, :issue:`454`) Be significantly |
| 1504 |
smarter about polling & timing behavior when running proxy commands, to avoid |
| 1505 |
unnecessary (often 100%!) CPU usage. Major thanks to Jason Dunsmore for |
| 1506 |
report & initial patchset and to Chris Adams & John Morrissey for followup |
| 1507 |
improvements. |
| 1508 |
- :bug:`455` Tweak packet size handling to conform better to the OpenSSH RFCs; |
| 1509 |
this helps address issues with interactive program cursors. Courtesy of Jeff |
| 1510 |
Quast. |
| 1511 |
- :bug:`428` Fix an issue in `~paramiko.file.BufferedFile` (primarily used in |
| 1512 |
the SFTP modules) concerning incorrect behavior by |
| 1513 |
`~paramiko.file.BufferedFile.readlines` on files whose size exceeds the |
| 1514 |
buffer size. Thanks to ``@achapp`` for catch & patch. |
| 1515 |
- :bug:`415` Fix ``ssh_config`` parsing to correctly interpret ``ProxyCommand |
| 1516 |
none`` as the lack of a proxy command, instead of as a literal command string |
| 1517 |
of ``"none"``. Thanks to Richard Spiers for the catch & Sean Johnson for the |
| 1518 |
fix. |
| 1519 |
- :support:`431 backported` Replace handrolled ``ssh_config`` parsing code with |
| 1520 |
use of the ``shlex`` module. Thanks to Yan Kalchevskiy. |
| 1521 |
- :support:`422 backported` Clean up some unused imports. Courtesy of Olle |
| 1522 |
Lundberg. |
| 1523 |
- :support:`421 backported` Modernize threading calls to use newer API. Thanks |
| 1524 |
to Olle Lundberg. |
| 1525 |
- :support:`419 backported` Modernize a bunch of the codebase internals to |
| 1526 |
leverage decorators. Props to ``@beckjake`` for realizing we're no longer on |
| 1527 |
Python 2.2 :D |
| 1528 |
- :bug:`266` Change numbering of `~paramiko.transport.Transport` channels to |
| 1529 |
start at 0 instead of 1 for better compatibility with OpenSSH & certain |
| 1530 |
server implementations which break on 1-indexed channels. Thanks to |
| 1531 |
``@egroeper`` for catch & patch. |
| 1532 |
- :bug:`459` Tighten up agent connection closure behavior to avoid spurious |
| 1533 |
``ResourceWarning`` display in some situations. Thanks to ``@tkrapp`` for the |
| 1534 |
catch. |
| 1535 |
- :bug:`429` Server-level debug message logging was overlooked during the |
| 1536 |
Python 3 compatibility update; Python 3 clients attempting to log SSH debug |
| 1537 |
packets encountered type errors. This is now fixed. Thanks to ``@mjmaenpaa`` |
| 1538 |
for the catch. |
| 1539 |
- :bug:`320` Update our win_pageant module to be Python 3 compatible. Thanks to |
| 1540 |
``@sherbang`` and ``@adamkerz`` for the patches. |
| 1541 |
- :release:`1.15.1 <2014-09-22>` |
| 1542 |
- :bug:`399` SSH agent forwarding (potentially other functionality as |
| 1543 |
well) would hang due to incorrect values passed into the new window size |
| 1544 |
arguments for `~paramiko.transport.Transport` (thanks to a botched merge). |
| 1545 |
This has been corrected. Thanks to Dylan Thacker-Smith for the report & |
| 1546 |
patch. |
| 1547 |
- :feature:`167` Add `~paramiko.config.SSHConfig.get_hostnames` for easier |
| 1548 |
introspection of a loaded SSH config file or object. Courtesy of Søren |
| 1549 |
Løvborg. |
| 1550 |
- :release:`1.15.0 <2014-09-18>` |
| 1551 |
- :support:`393` Replace internal use of PyCrypto's ``SHA.new`` with the |
| 1552 |
stdlib's ``hashlib.sha1``. Thanks to Alex Gaynor. |
| 1553 |
- :feature:`267` (also :issue:`250`, :issue:`241`, :issue:`228`) Add GSS-API / |
| 1554 |
SSPI (e.g. Kerberos) key exchange and authentication support |
| 1555 |
(:ref:`installation docs here <gssapi>`). Mega thanks to Sebastian Deiß, with |
| 1556 |
assist by Torsten Landschoff. |
| 1557 |
|
| 1558 |
.. note:: |
| 1559 |
Unix users should be aware that the ``python-gssapi`` library (a |
| 1560 |
requirement for using this functionality) only appears to support |
| 1561 |
Python 2.7 and up at this time. |
| 1562 |
|
| 1563 |
- :bug:`346 major` Fix an issue in private key files' encryption salts that |
| 1564 |
could cause tracebacks and file corruption if keys were re-encrypted. Credit |
| 1565 |
to Xavier Nunn. |
| 1566 |
- :feature:`362` Allow users to control the SSH banner timeout. Thanks to Cory |
| 1567 |
Benfield. |
| 1568 |
- :feature:`372` Update default window & packet sizes to more closely adhere to |
| 1569 |
the pertinent RFC; also expose these settings in the public API so they may |
| 1570 |
be overridden by client code. This should address some general speed issues |
| 1571 |
such as :issue:`175`. Big thanks to Olle Lundberg for the update. |
| 1572 |
- :bug:`373 major` Attempt to fix a handful of issues (such as :issue:`354`) |
| 1573 |
related to infinite loops and threading deadlocks. Thanks to Olle Lundberg as |
| 1574 |
well as a handful of community members who provided advice & feedback via |
| 1575 |
IRC. |
| 1576 |
- :support:`374` (also :issue:`375`) Old code cleanup courtesy of Olle |
| 1577 |
Lundberg. |
| 1578 |
- :support:`377` Factor `~paramiko.channel.Channel` openness sanity check into |
| 1579 |
a decorator. Thanks to Olle Lundberg for original patch. |
| 1580 |
- :bug:`298 major` Don't perform point validation on ECDSA keys in |
| 1581 |
``known_hosts`` files, since a) this can cause significant slowdown when such |
| 1582 |
keys exist, and b) ``known_hosts`` files are implicitly trustworthy. Thanks |
| 1583 |
to Kieran Spear for catch & patch. |
| 1584 |
|
| 1585 |
.. note:: |
| 1586 |
This change bumps up the version requirement for the ``ecdsa`` library to |
| 1587 |
``0.11``. |
| 1588 |
|
| 1589 |
- :bug:`234 major` Lower logging levels for a few overly-noisy log messages |
| 1590 |
about secure channels. Thanks to David Pursehouse for noticing & contributing |
| 1591 |
the fix. |
| 1592 |
- :feature:`218` Add support for ECDSA private keys on the client side. Thanks |
| 1593 |
to ``@aszlig`` for the patch. |
| 1594 |
- :bug:`335 major` Fix ECDSA key generation (generation of brand new ECDSA keys |
| 1595 |
was broken previously). Thanks to ``@solarw`` for catch & patch. |
| 1596 |
- :feature:`184` Support quoted values in SSH config file parsing. Credit to |
| 1597 |
Yan Kalchevskiy. |
| 1598 |
- :feature:`131` Add a `~paramiko.sftp_client.SFTPClient.listdir_iter` method |
| 1599 |
to `~paramiko.sftp_client.SFTPClient` allowing for more efficient, |
| 1600 |
async/generator based file listings. Thanks to John Begeman. |
| 1601 |
- :support:`378 backported` Minor code cleanup in the SSH config module |
| 1602 |
courtesy of Olle Lundberg. |
| 1603 |
- :support:`249 backported` Consolidate version information into one spot. |
| 1604 |
Thanks to Gabi Davar for the reminder. |
| 1605 |
- :release:`1.14.1 <2014-08-25>` |
| 1606 |
- :release:`1.13.2 <2014-08-25>` |
| 1607 |
- :bug:`376` Be less aggressive about expanding variables in ``ssh_config`` |
| 1608 |
files, which results in a speedup of SSH config parsing. Credit to Olle |
| 1609 |
Lundberg. |
| 1610 |
- :support:`324 backported` A bevvy of documentation typo fixes, courtesy of Roy |
| 1611 |
Wellington. |
| 1612 |
- :bug:`312` `paramiko.transport.Transport` had a bug in its ``__repr__`` which |
| 1613 |
surfaces during errors encountered within its ``__init__``, causing |
| 1614 |
problematic tracebacks in such situations. Thanks to Simon Percivall for |
| 1615 |
catch & patch. |
| 1616 |
- :bug:`272` Fix a bug where ``known_hosts`` parsing hashed the input hostname |
| 1617 |
as well as the hostnames from the ``known_hosts`` file, on every comparison. |
| 1618 |
Thanks to ``@sigmunau`` for final patch and ``@ostacey`` for the original |
| 1619 |
report. |
| 1620 |
- :bug:`239` Add Windows-style CRLF support to SSH config file parsing. Props |
| 1621 |
to Christopher Swenson. |
| 1622 |
- :support:`229 backported` Fix a couple of incorrectly-copied docstrings' ``.. |
| 1623 |
versionadded::`` RST directives. Thanks to Aarni Koskela for the catch. |
| 1624 |
- :support:`169 backported` Minor refactor of |
| 1625 |
`paramiko.sftp_client.SFTPClient.put` thanks to Abhinav Upadhyay. |
| 1626 |
- :bug:`285` (also :issue:`352`) Update our Python 3 ``b()`` compatibility shim |
| 1627 |
to handle ``buffer`` objects correctly; this fixes a frequently reported |
| 1628 |
issue affecting many users, including users of the ``bzr`` software suite. |
| 1629 |
Thanks to ``@basictheprogram`` for the initial report, Jelmer Vernooij for |
| 1630 |
the fix and Andrew Starr-Bochicchio & Jeremy T. Bouse (among others) for |
| 1631 |
discussion & feedback. |
| 1632 |
- :support:`371` Add Travis support & docs update for Python 3.4. Thanks to |
| 1633 |
Olle Lundberg. |
| 1634 |
- :release:`1.14.0 <2014-05-07>` |
| 1635 |
- :release:`1.13.1 <2014-05-07>` |
| 1636 |
- :release:`1.12.4 <2014-05-07>` |
| 1637 |
- :release:`1.11.6 <2014-05-07>` |
| 1638 |
- :bug:`-` `paramiko.file.BufferedFile.read` incorrectly returned text strings |
| 1639 |
after the Python 3 migration, despite bytes being more appropriate for file |
| 1640 |
contents (which may be binary or of an unknown encoding.) This has been |
| 1641 |
addressed. |
| 1642 |
|
| 1643 |
.. note:: |
| 1644 |
`paramiko.file.BufferedFile.readline` continues to return strings, not |
| 1645 |
bytes, as "lines" only make sense for textual data. It assumes UTF-8 by |
| 1646 |
default. |
| 1647 |
|
| 1648 |
This should fix `this issue raised on the Obnam mailing list |
| 1649 |
<http://comments.gmane.org/gmane.comp.sysutils.backup.obnam/252>`_. Thanks |
| 1650 |
to Antoine Brenner for the patch. |
| 1651 |
- :bug:`-` Added self.args for exception classes. Used for unpickling. Related |
| 1652 |
to (`Fabric #986 <https://github.com/fabric/fabric/issues/986>`_, `Fabric |
| 1653 |
#714 <https://github.com/fabric/fabric/issues/714>`_). Thanks to Alex |
| 1654 |
Plugaru. |
| 1655 |
- :bug:`-` Fix logging error in sftp_client for filenames containing the '%' |
| 1656 |
character. Thanks to Antoine Brenner. |
| 1657 |
- :bug:`308` Fix regression in dsskey.py that caused sporadic signature |
| 1658 |
verification failures. Thanks to Chris Rose. |
| 1659 |
- :support:`299` Use deterministic signatures for ECDSA keys for improved |
| 1660 |
security. Thanks to Alex Gaynor. |
| 1661 |
- :support:`297` Replace PyCrypto's ``Random`` with `os.urandom` for improved |
| 1662 |
speed and security. Thanks again to Alex. |
| 1663 |
- :support:`295` Swap out a bunch of PyCrypto hash functions with use of |
| 1664 |
`hashlib`. Thanks to Alex Gaynor. |
| 1665 |
- :support:`290` (also :issue:`292`) Add support for building universal |
| 1666 |
(Python 2+3 compatible) wheel files during the release process. Courtesy of |
| 1667 |
Alex Gaynor. |
| 1668 |
- :support:`284` Add Python language trove identifiers to ``setup.py``. Thanks |
| 1669 |
to Alex Gaynor for catch & patch. |
| 1670 |
- :bug:`235` Improve string type testing in a handful of spots (e.g. ``s/if |
| 1671 |
type(x) is str/if isinstance(x, basestring)/g``.) Thanks to ``@ksamuel`` for |
| 1672 |
the report. |
| 1673 |
- :release:`1.13.0 <2014-03-13>` |
| 1674 |
- :release:`1.12.3 <2014-03-13>` |
| 1675 |
- :release:`1.11.5 <2014-03-13>` |
| 1676 |
- :release:`1.10.7 <2014-03-13>` |
| 1677 |
- :feature:`16` **Python 3 support!** Our test suite passes under Python 3, and |
| 1678 |
it (& Fabric's test suite) continues to pass under Python 2. **Python 2.5 is |
| 1679 |
no longer supported with this change!** |
| 1680 |
|
| 1681 |
The merged code was built on many contributors' efforts, both code & |
| 1682 |
feedback. In no particular order, we thank Daniel Goertzen, Ivan Kolodyazhny, |
| 1683 |
Tomi Pieviläinen, Jason R. Coombs, Jan N. Schulze, ``@Lazik``, Dorian Pula, |
| 1684 |
Scott Maxwell, Tshepang Lekhonkhobe, Aaron Meurer, and Dave Halter. |
| 1685 |
- :support:`256 backported` Convert API documentation to Sphinx, yielding a new |
| 1686 |
API docs website to replace the old Epydoc one. Thanks to Olle Lundberg for |
| 1687 |
the initial conversion work. |
| 1688 |
- :bug:`-` Use constant-time hash comparison operations where possible, to |
| 1689 |
protect against `timing-based attacks |
| 1690 |
<http://codahale.com/a-lesson-in-timing-attacks/>`_. Thanks to Alex Gaynor |
| 1691 |
for the patch. |
| 1692 |
- :release:`1.12.2 <2014-02-14>` |
| 1693 |
- :release:`1.11.4 <2014-02-14>` |
| 1694 |
- :release:`1.10.6 <2014-02-14>` |
| 1695 |
- :feature:`58` Allow client code to access the stored SSH server banner via |
| 1696 |
`Transport.get_banner <paramiko.transport.Transport.get_banner>`. Thanks to |
| 1697 |
``@Jhoanor`` for the patch. |
| 1698 |
- :bug:`252` (`Fabric #1020 <https://github.com/fabric/fabric/issues/1020>`_) |
| 1699 |
Enhanced the implementation of ``ProxyCommand`` to avoid a deadlock/hang |
| 1700 |
condition that frequently occurs at ``Transport`` shutdown time. Thanks to |
| 1701 |
Mateusz Kobos, Matthijs van der Vleuten and Guillaume Zitta for the original |
| 1702 |
reports and to Marius Gedminas for helping test nontrivial use cases. |
| 1703 |
- :bug:`268` Fix some missed renames of ``ProxyCommand`` related error classes. |
| 1704 |
Thanks to Marius Gedminas for catch & patch. |
| 1705 |
- :bug:`34` (PR :issue:`35`) Fix SFTP prefetching incompatibility with some |
| 1706 |
SFTP servers regarding request/response ordering. Thanks to Richard |
| 1707 |
Kettlewell. |
| 1708 |
- :bug:`193` (and its attentant PRs :issue:`230` & :issue:`253`) Fix SSH agent |
| 1709 |
problems present on Windows. Thanks to David Hobbs for initial report and to |
| 1710 |
Aarni Koskela & Olle Lundberg for the patches. |
| 1711 |
- :release:`1.12.1 <2014-01-08>` |
| 1712 |
- :release:`1.11.3 <2014-01-08>` |
| 1713 |
- :release:`1.10.5 <2014-01-08>` |
| 1714 |
- :bug:`225 (1.12+)` Note ecdsa requirement in README. Thanks to Amaury |
| 1715 |
Rodriguez for the catch. |
| 1716 |
- :bug:`176` Fix AttributeError bugs in known_hosts file (re)loading. Thanks |
| 1717 |
to Nathan Scowcroft for the patch & Martin Blumenstingl for the initial test |
| 1718 |
case. |
| 1719 |
- :release:`1.12.0 <2013-09-27>` |
| 1720 |
- :release:`1.11.2 <2013-09-27>` |
| 1721 |
- :release:`1.10.4 <2013-09-27>` |
| 1722 |
- :feature:`152` Add tentative support for ECDSA keys. **This adds the ecdsa |
| 1723 |
module as a new dependency of Paramiko.** The module is available at |
| 1724 |
`warner/python-ecdsa on Github <https://github.com/warner/python-ecdsa>`_ and |
| 1725 |
`ecdsa on PyPI <https://pypi.python.org/pypi/ecdsa>`_. |
| 1726 |
|
| 1727 |
* Note that you might still run into problems with key negotiation -- |
| 1728 |
Paramiko picks the first key that the server offers, which might not be |
| 1729 |
what you have in your known_hosts file. |
| 1730 |
* Mega thanks to Ethan Glasser-Camp for the patch. |
| 1731 |
|
| 1732 |
- :feature:`136` Add server-side support for the SSH protocol's 'env' command. |
| 1733 |
Thanks to Benjamin Pollack for the patch. |
| 1734 |
- :bug:`156 (1.11+)` Fix potential deadlock condition when using Channel |
| 1735 |
objects as sockets (e.g. when using SSH gatewaying). Thanks to Steven Noonan |
| 1736 |
and Frank Arnold for catch & patch. |
| 1737 |
- :bug:`179` Fix a missing variable causing errors when an ssh_config file has |
| 1738 |
a non-default AddressFamily set. Thanks to Ed Marshall & Tomaz Muraus for |
| 1739 |
catch & patch. |
| 1740 |
- :bug:`200` Fix an exception-causing typo in ``demo_simple.py``. Thanks to Alex |
| 1741 |
Buchanan for catch & Dave Foster for patch. |
| 1742 |
- :bug:`199` Typo fix in the license header cross-project. Thanks to Armin |
| 1743 |
Ronacher for catch & patch. |
| 1744 |
- :release:`1.11.1 <2013-09-20>` |
| 1745 |
- :release:`1.10.3 <2013-09-20>` |
| 1746 |
- :bug:`162` Clean up HMAC module import to avoid deadlocks in certain uses of |
| 1747 |
SSHClient. Thanks to Gernot Hillier for the catch & suggested fix. |
| 1748 |
- :bug:`36` Fix the port-forwarding demo to avoid file descriptor errors. |
| 1749 |
Thanks to Jonathan Halcrow for catch & patch. |
| 1750 |
- :bug:`168` Update config handling to properly handle multiple 'localforward' |
| 1751 |
and 'remoteforward' keys. Thanks to Emre Yılmaz for the patch. |
| 1752 |
- :release:`1.11.0 <2013-07-26>` |
| 1753 |
- :release:`1.10.2 <2013-07-26>` |
| 1754 |
- :bug:`98 major` On Windows, when interacting with the PuTTY PAgeant, Paramiko |
| 1755 |
now creates the shared memory map with explicit Security Attributes of the |
| 1756 |
user, which is the same technique employed by the canonical PuTTY library to |
| 1757 |
avoid permissions issues when Paramiko is running under a different UAC |
| 1758 |
context than the PuTTY Ageant process. Thanks to Jason R. Coombs for the |
| 1759 |
patch. |
| 1760 |
- :support:`100` Remove use of PyWin32 in ``win_pageant`` module. Module was |
| 1761 |
already dependent on ctypes for constructing appropriate structures and had |
| 1762 |
ctypes implementations of all functionality. Thanks to Jason R. Coombs for |
| 1763 |
the patch. |
| 1764 |
- :bug:`87 major` Ensure updates to ``known_hosts`` files account for any |
| 1765 |
updates to said files after Paramiko initially read them. (Includes related |
| 1766 |
fix to guard against duplicate entries during subsequent ``known_hosts`` |
| 1767 |
loads.) Thanks to ``@sunweaver`` for the contribution. |
| 1768 |
- :bug:`153` (also :issue:`67`) Warn on parse failure when reading known_hosts |
| 1769 |
file. Thanks to ``@glasserc`` for patch. |
| 1770 |
- :bug:`146` Indentation fixes for readability. Thanks to Abhinav Upadhyay for |
| 1771 |
catch & patch. |
| 1772 |
- :release:`1.10.1 <2013-04-05>` |
| 1773 |
- :bug:`142` (`Fabric #811 <https://github.com/fabric/fabric/issues/811>`_) |
| 1774 |
SFTP put of empty file will still return the attributes of the put file. |
| 1775 |
Thanks to Jason R. Coombs for the patch. |
| 1776 |
- :bug:`154` (`Fabric #876 <https://github.com/fabric/fabric/issues/876>`_) |
| 1777 |
Forwarded SSH agent connections left stale local pipes lying around, which |
| 1778 |
could cause local (and sometimes remote or network) resource starvation when |
| 1779 |
running many agent-using remote commands. Thanks to Kevin Tegtmeier for catch |
| 1780 |
& patch. |
| 1781 |
- :release:`1.10.0 <2013-03-01>` |
| 1782 |
- :feature:`66` Batch SFTP writes to help speed up file transfers. Thanks to |
| 1783 |
Olle Lundberg for the patch. |
| 1784 |
- :bug:`133 major` Fix handling of window-change events to be on-spec and not |
| 1785 |
attempt to wait for a response from the remote sshd; this fixes problems with |
| 1786 |
less common targets such as some Cisco devices. Thanks to Phillip Heller for |
| 1787 |
catch & patch. |
| 1788 |
- :feature:`93` Overhaul SSH config parsing to be in line with ``man |
| 1789 |
ssh_config`` (& the behavior of ``ssh`` itself), including addition of parameter |
| 1790 |
expansion within config values. Thanks to Olle Lundberg for the patch. |
| 1791 |
- :feature:`110` Honor SSH config ``AddressFamily`` setting when looking up |
| 1792 |
local host's FQDN. Thanks to John Hensley for the patch. |
| 1793 |
- :feature:`128` Defer FQDN resolution until needed, when parsing SSH config |
| 1794 |
files. Thanks to Parantapa Bhattacharya for catch & patch. |
| 1795 |
- :bug:`102 major` Forego random padding for packets when running under |
| 1796 |
``*-ctr`` ciphers. This corrects some slowdowns on platforms where random |
| 1797 |
byte generation is inefficient (e.g. Windows). Thanks to ``@warthog618`` for |
| 1798 |
catch & patch, and Michael van der Kolff for code/technique review. |
| 1799 |
- :feature:`127` Turn ``SFTPFile`` into a context manager. Thanks to Michael |
| 1800 |
Williamson for the patch. |
| 1801 |
- :feature:`116` Limit ``Message.get_bytes`` to an upper bound of 1MB to protect |
| 1802 |
against potential DoS vectors. Thanks to ``@mvschaik`` for catch & patch. |
| 1803 |
- :feature:`115` Add convenience ``get_pty`` kwarg to ``Client.exec_command`` so |
| 1804 |
users not manually controlling a channel object can still toggle PTY |
| 1805 |
creation. Thanks to Michael van der Kolff for the patch. |
| 1806 |
- :feature:`71` Add ``SFTPClient.putfo`` and ``.getfo`` methods to allow direct |
| 1807 |
uploading/downloading of file-like objects. Thanks to Eric Buehl for the |
| 1808 |
patch. |
| 1809 |
- :feature:`113` Add ``timeout`` parameter to ``SSHClient.exec_command`` for |
| 1810 |
easier setting of the command's internal channel object's timeout. Thanks to |
| 1811 |
Cernov Vladimir for the patch. |
| 1812 |
- :support:`94` Remove duplication of SSH port constant. Thanks to Olle |
| 1813 |
Lundberg for the catch. |
| 1814 |
- :feature:`80` Expose the internal "is closed" property of the file transfer |
| 1815 |
class ``BufferedFile`` as ``.closed``, better conforming to Python's file |
| 1816 |
interface. Thanks to ``@smunaut`` and James Hiscock for catch & patch. |