This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os.path | |
import paramiko | |
from hashlib import sha1 | |
from hmac import HMAC | |
class KnownHostsRegistry (object): | |
""" | |
Read in the user's SSH known_hosts file, and perform lookups, | |
on either plaintext hostnames, or those that have been obscured | |
with known_hosts hashing (see here: http://nms.csail.mit.edu/projects/ssh/) |
NewerOlder