Why dont you try
ssh -i ~/.ssh/id_rsa xx.xxx.xxx.xxx 'curl -XGET
localhost:9200/index/_mapping/type'
cheers
On Fri, Aug 1, 2014 at 3:43 AM, Patrick Proniewski elasticsea...@patpro.net
wrote:
Hi,
Looks like your problem is not related to ES. It's a networking problem.
You ES server
I tried curl -XGET http://IPADDRESS:9200/.. http://IPADDRESS:9200/.. but
it failed.
Actually I cant even telnet port 9200 on my machine.
My guess is that elasticsearch port 9200 is hidden behind ssh port 22.
So I use ssh tunnel forwarding port 9200 on the server to my machine.
Like :
ssh
Hi,
Looks like your problem is not related to ES. It's a networking problem. You ES
server appears to live behind a firewall (or is bind to 127.0.0.1 only), and
your only way to contact it is to create an ssh tunnel to the server and to
pipe your queries into this tunnel so that you can get in
About the HTTP API, I wonder if I want to remote access a cluster on SSH
server, what should I include in my http rest command:
example as mapping:
curl -XGET ' http://localhost:9200/ index /_mapping/ type '
I tried something like below but got failed:
curl -XGET -u user_name:
You need to use SSH directly for it, curl won't work.
ssh user@host -i ~/.ssh/id_rsa.pub
Assuming you have a public key on the server.
Regards,
Mark Walkom
Infrastructure Engineer
Campaign Monitor
email: ma...@campaignmonitor.com
web: www.campaignmonitor.com
On 31 July 2014 08:47, Chia-Eng
You may want to look at
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search.html
If you are just learning ES, then check out
http://exploringelasticsearch.com/
Regards,
Mark Walkom
Infrastructure Engineer
Campaign Monitor
email: ma...@campaignmonitor.com
web:
Thank you for the links. Yeah, I am new to ES. (and http rest)
What I understand is that if I want to get the index documents on my SSH
server, I can SSH log in the server.
And then rest http get from localhost:9200.
Could you explain more about use SSH directly for it?
I think what I want to
You can also curl from your local machine to the server, without having to
SSH to it - curl -XGET http://IPADDRESS:9200/
You don't need to provide SSH credentials for that transport client example.
Regards,
Mark Walkom
Infrastructure Engineer
Campaign Monitor
email: