Cannot connect to kibana through port 5601

I actually got the solution, and the problem is not with elasticsearch. I had to forward the port by running
ssh azureuser@xx.xx.xx.xx -L 5601:localhost:5601

thanks for your help