interface documentation
class IKnownHostEntry(Interface): (source)
Known implementations: twisted.conch.client.knownhosts.HashedEntry, twisted.conch.client.knownhosts.PlainEntry, twisted.conch.client.knownhosts.UnparsedEntry
A IKnownHostEntry is an entry in an OpenSSH-formatted known_hosts file.
| Present Since | |
| 8.2 |
| Method | matches |
Return True if this entry matches the given hostname, False otherwise. |
| Method | matches |
Return True if this entry matches the given Key object, False otherwise. |
| Method | to |
No summary |
| Attribute | key |
The SSH key type identifier for this key. |
Return True if this entry matches the given hostname, False otherwise.
Note that this does no name resolution; if you want to match an IP address, you have to resolve it yourself, and pass it in as a dotted quad string.
| Parameters | |
hostname:bytes | The hostname to match against. |
| Returns | |
bool | Undocumented |
Return True if this entry matches the given Key object, False otherwise.
| Parameters | |
key:Key | The key object to match against. |
| Returns | |
bool | Undocumented |