Re: Remote access through SSH

2014-08-01 Thread Pawan Sharma
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

Re: Remote access through SSH

2014-07-31 Thread Chia-Eng Chang
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

Re: Remote access through SSH

2014-07-31 Thread Patrick Proniewski
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

Remote access through SSH

2014-07-30 Thread Chia-Eng Chang
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:

Re: Remote access through SSH

2014-07-30 Thread Mark Walkom
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

Re: Remote access through SSH

2014-07-30 Thread Mark Walkom
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:

Re: Remote access through SSH

2014-07-30 Thread Chia-Eng Chang
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

Re: Remote access through SSH

2014-07-30 Thread Mark Walkom
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: