Skip to main content
added 308 characters in body
Source Link

I know how to tunnel some port through remote machine using SSH. But now I have a problem I don't know how to handle. I have three machines:

  1. [PC] This is my machine. From this one I can access other two.

  2. [AS] This is the application server. It cannot reach any of the other two

  3. [WS] This is the machine with webservice.

It looks like this:

  ╔======>[AS]
  ║         ║
  ║         ║
[PC]        X
  ║         ║
  ║         ║
  ╚======>[WS]

I need to get from [AS] to the [WS], so I want this path:

  ╔=======[AS]
  ║         
  ║         
[PC]        
  ║         
  ║         
  ╚======>[WS]

I have admin access on both [PC] and [AS]. I have no access to [WS].

Is something like this even possible?

What I have so far: I can do a reverse SSH tunnel from [PC] to [AS] using this command:

ssh -R 12001:localhost:22 root@AS

This puts me to the console of [AS] and I can ssh to [PC] on port 12001. I guess this is the necessary first step. But how do I create SSH bridge from [AS] to the [WS]?

I know how to tunnel some port through remote machine using SSH. But now I have a problem I don't know how to handle. I have three machines:

  1. [PC] This is my machine. From this one I can access other two.

  2. [AS] This is the application server. It cannot reach any of the other two

  3. [WS] This is the machine with webservice.

It looks like this:

  ╔======>[AS]
  ║         ║
  ║         ║
[PC]        X
  ║         ║
  ║         ║
  ╚======>[WS]

I need to get from [AS] to the [WS], so I want this path:

  ╔=======[AS]
  ║         
  ║         
[PC]        
  ║         
  ║         
  ╚======>[WS]

I have admin access on both [PC] and [AS]. I have no access to [WS].

Is something like this even possible?

I know how to tunnel some port through remote machine using SSH. But now I have a problem I don't know how to handle. I have three machines:

  1. [PC] This is my machine. From this one I can access other two.

  2. [AS] This is the application server. It cannot reach any of the other two

  3. [WS] This is the machine with webservice.

It looks like this:

  ╔======>[AS]
  ║         ║
  ║         ║
[PC]        X
  ║         ║
  ║         ║
  ╚======>[WS]

I need to get from [AS] to the [WS], so I want this path:

  ╔=======[AS]
  ║         
  ║         
[PC]        
  ║         
  ║         
  ╚======>[WS]

I have admin access on both [PC] and [AS]. I have no access to [WS].

Is something like this even possible?

What I have so far: I can do a reverse SSH tunnel from [PC] to [AS] using this command:

ssh -R 12001:localhost:22 root@AS

This puts me to the console of [AS] and I can ssh to [PC] on port 12001. I guess this is the necessary first step. But how do I create SSH bridge from [AS] to the [WS]?

Source Link

Setting SSH bridge on remote machine

I know how to tunnel some port through remote machine using SSH. But now I have a problem I don't know how to handle. I have three machines:

  1. [PC] This is my machine. From this one I can access other two.

  2. [AS] This is the application server. It cannot reach any of the other two

  3. [WS] This is the machine with webservice.

It looks like this:

  ╔======>[AS]
  ║         ║
  ║         ║
[PC]        X
  ║         ║
  ║         ║
  ╚======>[WS]

I need to get from [AS] to the [WS], so I want this path:

  ╔=======[AS]
  ║         
  ║         
[PC]        
  ║         
  ║         
  ╚======>[WS]

I have admin access on both [PC] and [AS]. I have no access to [WS].

Is something like this even possible?