Skip to content

Ssh tunnel into remote tool's interfaces

Fritz Lekschas edited this page Dec 15, 2016 · 4 revisions

To access the interfaces of tools such as Solr, Neo4J etc. that exist on an instance running on AWS we need to ssh tunnel to expose these interfaces.

SSH tunneling steps:

  • In a terminal run: ssh ubuntu@<ec2_instance_IP> -L <chosen_port_above_1024>:localhost:<port_of_tool_to_access>
  • Then, you can access the remote tool's interface by going here in your browser: http://localhost:<chosen_port_above_1024>/

For example, one would access a remote instance of Neo4J like so:

  • In a terminal: ssh ubuntu@<ec2_instance_IP> -L 17474:localhost:7474
  • Then in a browser: http://localhost:17474