%PDF- %PDF-
Direktori : /lib/python3/dist-packages/paramiko/__pycache__/ |
Current File : //lib/python3/dist-packages/paramiko/__pycache__/client.cpython-312.pyc |
� �ec_� � �V � d Z ddlmZ ddlZddlZddlZddlZddlZddlm Z m Z ddlmZ ddl mZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZmZm Z ddl!m"Z" ddl#m$Z$m%Z% G d� de%� Z& G d� de'� Z( G d� de(� Z) G d� de(� Z* G d� de(� Z+y)z SSH client & key policies � )�hexlifyN)�ECONNREFUSED�EHOSTUNREACH)�Agent)�DEBUG)�SSH_PORT)�DSSKey)�ECDSAKey)� Ed25519Key)�HostKeys)�string_types)�RSAKey)�SSHException�BadHostKeyException�NoValidConnectionsError)� Transport)�retry_on_signal�ClosingContextManagerc � � e Zd ZdZd� Zdd�Zd� Zd� Zd� Zd� Z d � Z d � Zedddddddddddddddddddfd �Z d� Z dd�Z dd�Zd� Zd� Zd� Zd� Zd� Zy)� SSHClienta� A high-level representation of a session with an SSH server. This class wraps `.Transport`, `.Channel`, and `.SFTPClient` to take care of most aspects of authenticating and opening channels. A typical use case is:: client = SSHClient() client.load_system_host_keys() client.connect('ssh.example.com') stdin, stdout, stderr = client.exec_command('ls -l') You may pass in explicit overrides for authentication and server host key checking. The default mechanism is to try to use local key files or an SSH agent (if one is running). Instances of this class may be used as context managers. .. versionadded:: 1.6 c � � t � | _ t � | _ d| _ d| _ t � | _ d| _ d| _ y)z) Create a new SSHClient. N) r �_system_host_keys� _host_keys�_host_keys_filename�_log_channel�RejectPolicy�_policy� _transport�_agent��selfs �1/usr/lib/python3/dist-packages/paramiko/client.py�__init__zSSHClient.__init__E s>