0

Want to access remote webserver. The setup is like this:

LinuxDesk --> jumpuser@sshserver --> sshuser@webserver

Above all of them are linux servers. web service is running on 8080 port. How to access webservice from desktop by creating ssh tunnel.

2
  • Unclear what you are asking.
    – jesse_b
    Dec 13, 2019 at 16:29
  • From Linux desktop browser, I want to access the service running on webserver. There is a jump server in between. Webserver IP is not directly accessible from Linux desktop.
    – Thunder
    Dec 15, 2019 at 11:25

1 Answer 1

0

You can set up two tunnels:

  • (simple or reverse) LinuxDesk:port1 -> sshserver:port2 - the port numbers don't have to be 8080

  • (simple or reverse) sshserver:port2 -> webserver:8080

You'd then end up with the service at your LinuxDesk at the port port1.

Probably you want a reverse tunnel to the webserver and also a reverse one to the sshserver, but possibly not.

For implementation see man ssh. Just look there for "tunnel".

2
  • How to access the service from the browser? Is it localhost:8080 or something else?
    – Thunder
    Dec 16, 2019 at 8:57
  • @Thunder It will be at localhost:8080 if you tunnel like localhost:8080 -> sshserver:port2 in the LinuxDesktop. I'm not sure if it will be also available there if you tunnel your outgoing interface, eg. 192.168.0.x. You can check, but you can simply use localhost.
    – user147505
    Dec 16, 2019 at 12:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .