I have the following problem, and wonder whether one or two SSH tunnels can help.
Computers A and B are on different networks, far from each other. I have control of both (root access). Both run Leap.
Computer A is behind a firewall, which likely does not forward ports. I don’t have control over that firewall.
Computer B is in “free Internet”, and, although behind a firewall, ports can be forwarded through it, since I have control over the router that creates the firewall. Normally, I sit in front of B.
The question: Can I login from B to A, or can clients running in B connect to servers running in A, for example, to VNC server or sshd, so that I get control of A from B?
Any commands can be issued in A and B for this.
I am wondering whether some commands like
ssh -L ...
ssh -R ...
ssh -D ...
x11vnc -rfbport ...
ssh -X ...
issued in A or B could help? Are there bi-directional ssh tunnels?
I know that the task can be accomplished by TeamViewer or similar commercial software, but I would like to use ssh or vncviewer.