title: Elasticsearch remote access through SSH
body: <p>About Elasticsearch HTTP API, I wonder if I want to remote access a cluster on SSH server,
  what should I include in my http rest command:</p>
  
  <pre><code>    curl -XGET ' http://localhost:9200/ index /_mapping/ type ' 
  </code></pre>
  
  <p>I have tried something like below but got failed:</p>
  
  <pre><code>    curl -XGET -u cloud-user: --key ~/.ssh/id_rsa --pubkey ~/.ssh/id_rsa.pub  'xx.xxx.xxx.xxx:9200/index/_mapping/type'
  </code></pre>
  
  <p>Is there anyone knows the correct command or alternative solution?</p>