summaryrefslogtreecommitdiff
path: root/paramiko/client.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-06-21 18:36:50 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-21 18:36:50 -0400
commitb5a7c1c327ffc8a9a798a9dedc97b24f6a6fd586 (patch)
tree1dca78dc5f0b1467b32868a13782d436368b0469 /paramiko/client.py
parent964c34017fe648df21c9c330887796f14609c59b (diff)
downloadparamiko-b5a7c1c327ffc8a9a798a9dedc97b24f6a6fd586.tar.gz
Add docstring and signature support for disable_algorithms
Diffstat (limited to 'paramiko/client.py')
-rw-r--r--paramiko/client.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index a47efbfe..322f5fa9 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -236,6 +236,7 @@ class SSHClient(ClosingContextManager):
auth_timeout=None,
gss_trust_dns=True,
passphrase=None,
+ disable_algorithms=None,
):
"""
Connect to an SSH server and authenticate to it. The server's host key
@@ -310,6 +311,9 @@ class SSHClient(ClosingContextManager):
for the SSH banner to be presented.
:param float auth_timeout: an optional timeout (in seconds) to wait for
an authentication response.
+ :param dict disable_algorithms:
+ an optional dict passed directly to `.Transport` and its keyword
+ argument of the same name.
:raises:
`.BadHostKeyException` -- if the server's host key could not be
@@ -327,6 +331,8 @@ class SSHClient(ClosingContextManager):
Added the ``gss_trust_dns`` argument.
.. versionchanged:: 2.4
Added the ``passphrase`` argument.
+ .. versionchanged:: 2.6
+ Added the ``disable_algorithms`` argument.
"""
if not sock:
errors = {}