|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /proc/self/root/usr/lib/python2.7/site-packages/paramiko/ |
Upload File : |
�
x�\c @ sx d Z d d l Z d d l Z d d l Z d d l Z d d l Z d Z d e f d � � YZ d e f d � � YZ d S( s2
Configuration file (aka ``ssh_config``) support.
i����Ni t SSHConfigc B s\ e Z d Z e j d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d � Z RS( s�
Representation of config information as stored in the format used by
OpenSSH. Queries can be made via `lookup`. The format is described in
OpenSSH's ``ssh_config`` man page. This class is provided primarily as a
convenience to posix users (since the OpenSSH format is a de-facto
standard on posix) but should work fine on Windows too.
.. versionadded:: 1.6
s (\w+)(?:\s*=\s*|\s+)(.+)c C s
g | _ d S( s5
Create a new OpenSSH config object.
N( t _config( t self( ( s3 /tmp/pip-install-A1qMVe/paramiko/paramiko/config.pyt __init__. s c C s� i d g d 6i d 6} x�| D]�} | j � } | s | j d � rL q n t j | j | � } | s t d j | � � � n | j d � j � } | j d � } | d k r� | j j
| � i | j | � d 6i d 6} q | d k r| j � d k rd | d | <q | j d
� r<| j
d
� r<| d d !} n | d k r�| | d k rp| d | j
| � q�| g | d | <q | | d k r | | d | <q q W| j j
| � d S( s�
Read an OpenSSH config from the given file object.
:param file_obj: a file-like object to read the config file from
t *t hostt configt #s Unparsable line {}i i t proxycommandt nonet "i����t identityfilet localforwardt
remoteforwardN( R R R
( t stript
startswitht ret matcht SETTINGS_REGEXt Exceptiont formatt groupt lowerR t appendt
_get_hostst Nonet endswith( R t file_objR t lineR t keyt value( ( s3 /tmp/pip-install-A1qMVe/paramiko/paramiko/config.pyt parse4 s0
c C s� g | j D]"