Which command enables remote port forwarding in SSH?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command that enables remote port forwarding in SSH is indeed represented by the option that includes the -R flag. When you use ssh with the -R option, it allows you to specify that a port on the remote server should be forwarded to a port on the local machine. This means that when a connection is made to the specified remote port, it will be forwarded to the designated local address and port. This is particularly useful for scenarios where you want to allow access to a service on your local machine from a remote server, effectively enabling remote clients to connect to your local application through the server.

The other options serve different purposes: while -L is used for local port forwarding, -X is for enabling X11 forwarding to run graphical applications over SSH, and -T disables pseudo-terminal allocation, which has no relevance to port forwarding. Each option plays a distinct role in SSH command functionality, but in the context of remote port forwarding, the -R option is specifically required to set up the desired connectivity.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy