Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files (x86)/MySQL/MySQL Workbench 6.1 CE/python/site-packages/paramiko/ |
Upload File : |
ó ¤'Sc @ s® d Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z e d d ƒ \ Z Z Z Z d d d „ ƒ YZ d e f d „ ƒ YZ d S( s' SSH Agent interface for Unix clients. iÿÿÿÿN( t SSHException( t Message( t PKeyi i t Agentc B s; e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( sò Client interface for using private keys from an SSH agent running on the local machine. If an SSH agent is running, this class can be used to connect to it and retreive L{PKey} objects which can be used when attempting to authenticate to remote SSH servers. Because the SSH agent protocol uses environment variables and unix-domain sockets, this probably doesn't work on Windows. It does work on most posix platforms though (Linux and MacOS X, for example). c C sM d | _ d | _ d t j k rw t j d k rw t j t j t j ƒ } y | j t j d ƒ Wn d SX| | _ nD t j d k r· d d l } | j ƒ r° | j ƒ | _ q» d Sn d S| j t t ƒ ƒ \ } } | t k rñ t d ƒ ‚ n g } x@ t | j ƒ ƒ D], } | j t | | j ƒ ƒ ƒ | j ƒ q Wt | ƒ | _ d S( s8 Open a session with the local machine's SSH agent, if one is running. If no agent is running, initialization will succeed, but L{get_keys} will return an empty tuple. @raise SSHException: if an SSH agent is found, but speaks an incompatible protocol t SSH_AUTH_SOCKt win32Niÿÿÿÿs! could not get keys from ssh-agent( ( t Nonet connt keyst ost environt syst platformt sockett AF_UNIXt SOCK_STREAMt connectt win_pageantt can_talk_to_agentt PageantConnectiont _send_messaget chrt SSH2_AGENTC_REQUEST_IDENTITIESt SSH2_AGENT_IDENTITIES_ANSWERR t ranget get_intt appendt AgentKeyt get_stringt tuple( t selfR R t ptypet resultR t i( ( sZ C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\agent.pyt __init__1 s. c C s5 | j d k r | j j ƒ n d | _ d | _ d S( s1 Close the SSH agent connection. N( ( R R t closeR ( R ( ( sZ C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\agent.pyR# W s c C s | j S( s' Return the list of keys available through the SSH agent, if any. If no SSH agent was running (or it couldn't be contacted), an empty list will be returned. @return: a list of keys available on the SSH agent @rtype: tuple of L{AgentKey} ( R ( R ( ( sZ C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\agent.pyt get_keys` s c C s| t | ƒ } | j j t j d t | ƒ ƒ | ƒ | j d ƒ } t | j t j d | ƒ d ƒ ƒ } t | j ƒ ƒ | f S( Ns >Ii i ( t strR t sendt structt packt lent _read_allR t unpackt ordt get_byte( R t msgt l( ( sZ C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\agent.pyR k s &%c C s— | j j | ƒ } x~ t | ƒ | k r’ t | ƒ d k rH t d ƒ ‚ n | j j | t | ƒ ƒ } t | ƒ d k r… t d ƒ ‚ n | | 7} q W| S( Ni s lost ssh-agent( R t recvR) R ( R t wantedR t extra( ( sZ C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE/python/site-packages\paramiko\agent.pyR* r s ( t __name__t __module__t __doc__R"