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
@@ -400,7 +400,7 @@ Any type of iterator may be used as hosts list, including generator and list com
400
400
401
401
hosts = ['dc1.myhost1', 'dc2.myhost2']
402
402
client = ParallelSSHClient((h for h in hosts if h.find('dc1')))
403
-
403
+
404
404
:Filter:
405
405
.. code-block:: python
406
406
@@ -424,3 +424,45 @@ Hosts list can be modified in place. A call to ``run_command`` will create new c
424
424
client.hosts = ['otherhost']
425
425
print(client.run_command('exit 0'))
426
426
{'otherhost': exit_code=None, <..>}
427
+
428
+
Additional options for underlying SSH libraries
429
+
************************************************
430
+
431
+
Not allSSH library configuration options are used directly by ``Parallel-SSH``.
432
+
433
+
Additional options can be passed on to the underlying SSH libraries used via an optional keyword argument.
434
+
435
+
Please note that the underlying SSH libraries used are subject to change andnotall features are present inallSSH libraries used. Future releases will have more than one option on which SSH library to use, depending on user requirements and preference.
In this example, ``gss_auth``, ``gss_kex``and``gss_host`` are keyword arguments passed on to `paramiko.client.SSHClient.connect <http://paramiko-docs.readthedocs.io/en/stable/api/client.html#paramiko.client.SSHClient.connect>`_ to instruct the client to enable GSS-API authentication and key exchange with the provided GSS host.
452
+
453
+
.. note::
454
+
455
+
The GSS-API features of Paramiko require that the ``python-gssapi`` package be installed manually - it is optional andnot installed by any*extras* option of Paramiko.
456
+
457
+
``pip install python-gssapi``
458
+
459
+
Compression
460
+
++++++++++++
461
+
462
+
Any other options not directly referenced by ``run_command`` can be passed on to `paramiko.client.SSHClient.connect <http://paramiko-docs.readthedocs.io/en/stable/api/client.html#paramiko.client.SSHClient.connect>`_, for example the ``compress`` option.
0 commit comments