class Net::SSH::HostKeyError

def key

Returns the key itself, as reported by the remote host.
def key
  @data && @data[:key]
end