Who must open the tunnel?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
does it matter who client/server opens the ssh tunnel?
If machine A has a client and needs to access a server on machine Bs
   If machine A has an ssh server but machine B only has an ssh
      Machine B can ssh (open a tunnel) to machine A.
      Does a client on machine A then have access through this tunnel
to machine Bs server?

Re: Who must open the tunnel?

Quoted text here. Click to load it

Depends on how you set up tunnels. Normally, one uses '-L' to set up a
local tunnel from machine B to a designated port on machine A or on
another machine inside the network reachable by machine A. However, by
using the '-R' option, you can set up a port on machine A to reach a
designated port on machine B or reachable by machine B directly.
Either can be useful.

Site Timeline