Module netmiko.ssh_auth
Expand source code
from typing import Any
from paramiko import SSHClient
class SSHClient_noauth(SSHClient):
"""Set noauth when manually handling SSH authentication."""
def _auth(self, username: str, *args: Any) -> None:
transport = self.get_transport()
assert transport is not None
transport.auth_none(username)
return
Classes
class SSHClient_noauth
-
Set noauth when manually handling SSH authentication.
Create a new SSHClient.
Expand source code
class SSHClient_noauth(SSHClient): """Set noauth when manually handling SSH authentication.""" def _auth(self, username: str, *args: Any) -> None: transport = self.get_transport() assert transport is not None transport.auth_none(username) return
Ancestors
- paramiko.client.SSHClient
- paramiko.util.ClosingContextManager