class Net::SSH::HostKeyError

def ip

Returns the IP address of the remote host, as reported by the socket.
def ip
  @data && @data[:peer] && @data[:peer][:ip]
end