I am trying to connect via SSH using the ssh -p 9999 -L 5602:xx.xx.x.xxx:5601 login@zz.zzz.zzz.zzz and then I enter localhost:5602 in the browser as a result I get

 This page isn't working localhost didn't send any data. ERR_EMPTY_RESPONSE 

and on the command line

 channel 4: open failed: connect failed: Connection refused channel 3: open failed: connect failed: Connection refused 

How to fix it?

Additional information: CentOS 7, trying to run Kibana over SSH, firewall disabled

  • Obviously, xx.xx.x.xxx:5601 refuses to accept the connection - andreymal

2 answers 2

Kibana's default settings allow the application to work only on the locahost interface.

https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html

It is necessary to change the settings for the necessary (in particular, put 0.0.0.0 to listen to all interfaces) and everything will work.

    Make sure you have someone really listening to port 5601 on xx.xx.x.xxx (but not on zz.zzz.zzz.zzz!) And yes, in the browser (if only it is on the same machine, from which you start ssh is not obvious) you need to enter localhost:5602

    • Comments are not intended for extended discussion; conversation moved to chat . - Yuriy SPb