Ñò pØcJc @ s8 d Z d d k l Z d d k Z d d k Z d d k Z d d k Z d d k l Z d d k Td d k l Z d d k l Z d d k l Z d d k l Z d d k l Z l Z d d k l Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( s L{SSHClient}. iÿÿÿÿ( t hexlifyN( t Agent( t *( t DSSKey( t HostKeys( t ResourceManager( t RSAKey( t SSHExceptiont BadHostKeyException( t Transportt MissingHostKeyPolicyc B s e Z d Z d „ Z RS( sÈ Interface for defining the policy that L{SSHClient} should use when the SSH server's hostname is not in either the system host keys or the application's keys. Pre-made classes implement policies for automatically adding the key to the application's L{HostKeys} object (L{AutoAddPolicy}), and for automatically rejecting the key (L{RejectPolicy}). This function may be used to ask the user to verify the key, for example. c C s d S( s Called when an L{SSHClient} receives a server key for a server that isn't in either the system or local L{HostKeys} object. To accept the key, simply return. To reject, raised an exception (which will be passed to the calling application). N( ( t selft clientt hostnamet key( ( s3 /usr/lib/python2.6/site-packages/paramiko/client.pyt missing_host_key2 s ( t __name__t __module__t __doc__R ( ( ( s3 /usr/lib/python2.6/site-packages/paramiko/client.pyR ' s t AutoAddPolicyc B s e Z d Z d „ Z RS( sš Policy for automatically adding the hostname and new host key to the local L{HostKeys} object, and saving it. This is used by L{SSHClient}. c C ss | i i | | i ƒ | ƒ | i d j o | i | i ƒ n | i t d | i ƒ | t | i ƒ ƒ f ƒ d S( Ns Adding %s host key for %s: %s( t _host_keyst addt get_namet _host_keys_filenamet Nonet save_host_keyst _logt DEBUGR t get_fingerprint( R R R R ( ( s3 /usr/lib/python2.6/site-packages/paramiko/client.pyR B s ( R R R R ( ( ( s3 /usr/lib/python2.6/site-packages/paramiko/client.pyR <