Part of twisted.conch.client.knownhosts View Source View In Hierarchy
|Method||__init__||Create a new, empty KnownHostsFile.|
|Method||iterentries||Iterate over the host entries in this file.|
|Method||hasHostKey||Check for an entry with matching hostname and key.|
|Method||verifyHostKey||Verify the given host key for the given IP and host, asking for confirmation from, and notifying, the given UI about changes to this file.|
|Method||addHostKey||Add a new
|Class Method||fromPath||Create a new
|Instance Variable||_added||A list of
|Instance Variable||_clobber||A flag indicating whether the current contents of the save path will be
disregarded and potentially overwritten or not. If
IKnownHostEntryproviders which have been added to this instance in memory but not yet saved.
True, this will be done. If
False, entries in the save path will be read and new entries will be saved by appending rather than overwriting. (type:
Unless you want to erase the current contents of
you want to use
|Parameters||hostname||A hostname or IP address literal to check for. (type: |
|key||The public key to check for. (type: |
|Raises||HostKeyChanged||if the host key found for the given hostname does not match the given key.|
|Parameters||ui||The user interface to request an IP address from.|
|hostname||The hostname that the user requested to connect to.|
|ip||The string representation of the IP address that is actually being connected to.|
|key||The public key of the server.|
HashedEntryto the key database.
Note that you still need to call
if you wish these changes to be persisted.
|Parameters||hostname||A hostname or IP address literal to associate with the new entry. (type: |
|key||The public key to associate with the new entry. (type: |
KnownHostsFile, potentially reading existing known hosts information from the given file.
|Parameters||path||A path object to use for both reading contents from and later saving to.
If no file exists at this path, it is not an error; a |