You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New native client tunneling implementation - resolves#123.
Added greenlet timeout setting to native clients.
Native clients raise specific exceptions on errors.
Fixed timeout setting not being applied to native client sockets.
Fixed native client raising incorrect exception on timeouts connecting to host.
Updated documentation.
Increased test coverage.
Copy file name to clipboardExpand all lines: Changelog.rst
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,24 @@
1
1
Change Log
2
2
============
3
3
4
+
1.7.0
5
+
++++++
6
+
7
+
Changes
8
+
--------
9
+
10
+
* Better tunneling implementation for native clients that supports multiple tunnels over single SSH connection for connecting multiple hosts through single proxy.
11
+
* Added ``greenlet_timeout`` setting to native client ``run_command`` to pass on to getting greenlet result to allow for greenlets to timeout.
12
+
* Native client raises specific exceptions on non-authentication errors connecting to host instead of generic ``SessionError``.
13
+
14
+
15
+
Fixes
16
+
------
17
+
18
+
* Native client tunneling would not work correctly - #123.
19
+
* ``timeout`` setting was not applied to native client sockets.
20
+
* Native client would have ``SessionError`` instead of ``Timeout`` exceptions on timeout errors connecting to hosts.
Copy file name to clipboardExpand all lines: doc/index.rst
+7-25Lines changed: 7 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,17 +32,19 @@ It uses non-blocking asynchronous SSH sessions and is to date the only publicly
32
32
quickstart
33
33
ssh2
34
34
advanced
35
-
Changelog
36
35
api
36
+
Changelog
37
37
38
38
In a nutshell
39
39
**************
40
40
41
+
Client will attempt to use all available keys under ``~/.ssh`` as well as any keys in an SSH agent, if one is available.
42
+
41
43
.. code-block:: python
42
44
43
45
from__future__import print_function
44
46
45
-
from pssh.pssh_clientimport ParallelSSHClient
47
+
from pssh.clientsimport ParallelSSHClient
46
48
47
49
client = ParallelSSHClient(['localhost'])
48
50
output = client.run_command('whoami')
@@ -54,31 +56,11 @@ In a nutshell
54
56
55
57
<your username here>
56
58
57
-
`ssh2-python` (`libssh2`) based clients
58
-
******************************************
59
-
60
-
As of version ``1.2.0``, new single host and parallel clients are available based on the ``libssh2`` C library via its ``ssh2-python`` wrapper.
61
-
62
-
They offer significantly enhanced performance and stability, at much less overhead, with a native non-blocking mode meaning *no monkey patching of the Python standard library* when using them.
63
-
64
-
To use them, import from ``pssh2_client`` or ``ssh2_client`` for the parallel and single clients respectively.
65
-
66
-
.. code-block:: python
67
-
68
-
from__future__import print_function
69
-
70
-
from pssh.pssh2_client import ParallelSSHClient
71
-
72
-
client = ParallelSSHClient(['localhost'])
73
-
output = client.run_command('whoami')
74
-
for line in output['localhost'].stdout:
75
-
print(line)
76
-
77
-
The API is mostly identical to the current clients, though some features are not yet supported. See `client feature comparison <ssh2.html>`_ section for how feature support differs between the two clients.
78
-
79
59
.. note::
80
60
81
-
From version ``2.x.x`` onwards, the ``ssh2-python`` based clients will *become the default*, replacing the current ``pssh_client.ParallelSSHClient``, with the current clients renamed.
61
+
There is also a now deprecated paramiko based client available under ``pssh.clients.miko`` that has much the same API. It supports some features not currently supported by the native client - see `feature comparison <ssh2.html>`_.
62
+
63
+
From version ``2.x.x`` onwards, the clients under ``pssh.clients.miko`` will be an optional ``extras`` install.
0 commit comments