Here's the scenario: I have 4 hosts.
- AWS bastion host (port 22 only)
- EC2 Instance with graphical desktop (private subnet)
- EC2 Instance (no graphical) with Docker running a WebLogic Server container
Problem: I need to be able to access that WebLogic server via internet browser through the bastion host. Now I can only use port 22 to the bastion host but all outgoing connections are enabled.
My idea was to use TightVNC viewer and SSH tunnel through the bastion host to the GUI instance.
Now my issues is I don't know how to get my bastion host to forward incoming port 22 for my user to the destination port 5905, in my case. I do not have root access on the bastion host.
All of the solutions I've found so far involve SSHing via command line, not using VNC. I need the bastion to automatically forward port 22 traffic to the VNC port, for my user only if possible but not 100% required.
public public private private [user/client] --22-->[bastion]--VNC:5905-->[VNC Server]--80/443-->[Docker/WLS] GUI CLI GUI CLI