An administrator must allow external collaborators to reach an internal HTTP host on port 80 by connecting to a bastion server. The bastion should accept connections on port 8080 and forward them to the internal host. Which SSH option enables this setup on the bastion server?
The correct option instructs the bastion to open a socket on port 8080 and relay incoming traffic to the internal host’s port 80. The option that begins with “-L” creates a listener on the client side instead of the server. The “-D” flag sets up a dynamic SOCKS proxy rather than a fixed tunnel. The “-N” flag prevents execution of remote commands but does not establish any port mappings.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a bastion server and why is it used?
Open an interactive chat with Bash
What does the SSH option '-L' do and how is it different from '-R'?
Open an interactive chat with Bash
What are the purposes of the '-D' and '-N' SSH flags?