class Net::SSH::Transport::Kex::DiffieHellmanGroup1SHA1
def verify_server_key(key) #:nodoc:
if it is not.
really is the key for the session's host. Raise Net::SSH::Exception
Verify that the given key is of the expected type, and that it
def verify_server_key(key) #:nodoc: if key.ssh_type != algorithms.host_key raise Net::SSH::Exception, "host key algorithm mismatch " + "'#{key.ssh_type}' != '#{algorithms.host_key}'" end blob, fingerprint = generate_key_fingerprint(key) unless connection.host_key_verifier.verify(:key => key, :key_blob => blob, :fingerprint => fingerprint, :session => connection) raise Net::SSH::Exception, "host key verification failed" end end