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. |
| Returns | |
bytes | a serialized string representation of this entry, suitable for inclusion in a known_hosts file. (Newline not included.) |