Logo Search packages:      
Sourcecode: paramiko version File versions  Download package

def paramiko::transport::Transport::add_server_key (   self,
  key 
)

Add a host key to the list of keys used for server mode.  When behaving
as a server, the host key is used to sign certain packets during the
SSH2 negotiation, so that the client can trust that we are who we say
we are.  Because this is used for signing, the key must contain private
key info, not just the public half.  Only one key of each type (RSA or
DSS) is kept.

@param key: the host key to add, usually an L{RSAKey <rsakey.RSAKey>} or
    L{DSSKey <dsskey.DSSKey>}.
@type key: L{PKey <pkey.PKey>}

Definition at line 442 of file transport.py.

00442                                  :
        """
        Add a host key to the list of keys used for server mode.  When behaving
        as a server, the host key is used to sign certain packets during the
        SSH2 negotiation, so that the client can trust that we are who we say
        we are.  Because this is used for signing, the key must contain private
        key info, not just the public half.  Only one key of each type (RSA or
        DSS) is kept.
        
        @param key: the host key to add, usually an L{RSAKey <rsakey.RSAKey>} or
            L{DSSKey <dsskey.DSSKey>}.
        @type key: L{PKey <pkey.PKey>}
        """
        self.server_key_dict[key.get_name()] = key

    def get_server_key(self):


Generated by  Doxygen 1.6.0   Back to index