How to connect Kibana to Remote elasticsearch

Can u access localhost:9200 ? What version are you trying to install ?

See if this post helps you too .X-pack 5.1.1 error in kibana

Cheers
Rashmi