Bird
0
0

Why might SSH tunneling fail if the SSH server's configuration disables GatewayPorts?

hard📝 Conceptual Q10 of 15
Linux CLI - SSH and Remote Access
Why might SSH tunneling fail if the SSH server's configuration disables GatewayPorts?
ASSH connections will be rejected immediately
BLocal port forwarding (-L) will not work at all
CRemote port forwarding (-R) won't bind to non-local interfaces
DDynamic port forwarding (-D) will be disabled
Step-by-Step Solution
Solution:
  1. Step 1: Understand GatewayPorts setting

    GatewayPorts controls if remote forwarded ports bind to all interfaces or only localhost.
  2. Step 2: Effect of disabling GatewayPorts

    If disabled, remote port forwarding (-R) binds only to localhost, preventing external access.
  3. Final Answer:

    Remote port forwarding (-R) won't bind to non-local interfaces -> Option C
  4. Quick Check:

    Disabled GatewayPorts restricts remote port binding [OK]
Quick Trick: GatewayPorts affects remote port binding interfaces [OK]
Common Mistakes:
  • Thinking local forwarding is affected
  • Assuming SSH connections are rejected
  • Confusing dynamic forwarding with GatewayPorts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes