paramiko.client.MissingHostKeyPolicy

class paramiko.client.MissingHostKeyPolicy

Interface for defining the policy that .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 .HostKeys object (.AutoAddPolicy), and for automatically rejecting the key (.RejectPolicy).

This function may be used to ask the user to verify the key, for example.

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Methods

missing_host_key(client, hostname, key) Called when an .SSHClient receives a server key for a server that isn’t in either the system or local .HostKeys object.
missing_host_key(client, hostname, key)

Called when an .SSHClient receives a server key for a server that isn’t in either the system or local .HostKeys object. To accept the key, simply return. To reject, raised an exception (which will be passed to the calling application).

Navigation