paramiko.RejectPolicy

Package paramiko :: Class RejectPolicy |
[show private | hide private]
[frames | no frames]

## Type RejectPolicy

              object --+
                       |
    MissingHostKeyPolicy --+
                           |
                          RejectPolicy

Policy for automatically rejecting the unknown hostname & key. This is used by `SSHClient`.

Method Summary
| ``missing_host_key`(self, 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.
Inherited from object
| ``__init__`(...)` x.__init__(...) initializes x; see x.__class__.__doc__ for signature
| ``__delattr__`(...)` x.__delattr__('name') <==> del x.name
| ``__getattribute__`(...)` x.__getattribute__('name') <==> x.name
| ``__hash__`(x)` x.__hash__() <==> hash(x)
| ``__new__`(T, S, ...)` T.__new__(S, ...) -> a new object with type S, a subtype of T
| ``__reduce__`(...)` helper for pickle
| ``__reduce_ex__`(...)` helper for pickle
| ``__repr__`(x)` x.__repr__() <==> repr(x)
| ``__setattr__`(...)` x.__setattr__('name', value) <==> x.name = value
| ``__str__`(x)` x.__str__() <==> str(x)

Method Details

### missing_host_key(self, 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). Overrides: `paramiko.MissingHostKeyPolicy.missing_host_key` (inherited documentation)

Generated by Epydoc 2.1 on Wed Aug 16 14:35:04 2006 | http://epydoc.sf.net