class Net::SSH::HostKeyError

def host

Returns the host name for the remote host, as reported by the socket.
def host
  @data && @data[:peer] && @data[:peer][:host]
end