summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/client.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index 2d14f362..d8be9108 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -326,10 +326,14 @@ class SSHClient(ClosingContextManager):
`.Transport.__init__`.
:param auth_strategy:
an optional instance of `.AuthStrategy`, triggering use of this
- newer authentication mechanism. This parameter is **incompatible**
- with all other authentication-related parameters (such as, but not
- limited to, ``password``, ``key_filename`` and ``allow_agent``) and
- will trigger an exception if given alongside them.
+ newer authentication mechanism instead of SSHClient's legacy auth
+ method.
+
+ .. warning::
+ This parameter is **incompatible** with all other
+ authentication-related parameters (such as, but not limited to,
+ ``password``, ``key_filename`` and ``allow_agent``) and will
+ trigger an exception if given alongside them.
:returns:
`.AuthResult` if ``auth_strategy`` is non-``None``; otherwise,