File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/libcloud/compute/__pycache__/ssh.cpython-310.pyc
Back
o ;j=v � @ sZ d Z ddlZddlZddlZddlZddlZddlZddlmZm Z m Z mZmZm Z ddlmZ ddlmZ ddlmZmZ ddlmZ dZzddlZd Zed d� ej�d�D ��ZW n eyf d ZY nw g d�ZdZej �!dd��"� dv Z#d�$� Z%G dd� de&�Z'G dd� d�Z(G dd� de(�Z)G dd� de(�Z*G dd� de(�Z+e)Z,es�e+Z,dS dS )z. Wraps multiple ways to communicate over SSH. � N)�List�Type�Tuple�Union�Optional�cast)�join)�split)�StringIO�b)�ExtraLogFormatterFTc c � � | ]}t |�V qd S �N��int)�.0�x� r �H/opt/saltstack/salt/lib/python3.10/site-packages/libcloud/compute/ssh.py� <genexpr>( � � r �.r )� BaseSSHClient�ParamikoSSHClient�ShellOutSSHClient�SSHCommandTimeoutErrorzahttps://libcloud.readthedocs.io/en/latest/compute/deployment.html#supported-private-ssh-key-types�-LIBCLOUD_PARAMIKO_SHA2_BACKWARD_COMPATIBILITY�true)r �1a$ Received authentication error from the server. Disabling SHA-2 variants of RSA key verification algorithm for backward compatibility reasons and trying connecting again. You can disable this behavior by setting LIBCLOUD_PARAMIKO_SHA2_BACKWARD_COMPATIBILITY environment variable to "false". c s2 e Zd ZdZd � fdd� Zdd� Zdd� Z� ZS ) r zB Exception which is raised when an SSH command times out. Nc s4 || _ || _|| _|| _d| | _t� �| j� d S )Nz#Command didn't finish in %s seconds)�cmd�timeout�stdout�stderr�message�super�__init__)�selfr r r! r"