Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to create a local SSH tunnel forwarding port 8080.
Linux CLI
ssh -L [1] user@remote_host Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -R instead of -L for local forwarding.
Forgetting to specify the port mapping format.
✗ Incorrect
The -L option specifies local port forwarding in the format local_port:host:host_port.
2fill in blank
mediumComplete the command to create a remote SSH tunnel forwarding remote port 9090 to local port 3000.
Linux CLI
ssh [1] 9090:localhost:3000 user@remote_host
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -L instead of -R for remote forwarding.
Mixing up local and remote ports.
✗ Incorrect
The -R option specifies remote port forwarding in the format remote_port:host:host_port.
3fill in blank
hardFix the error in the SSH command to forward local port 5000 to remote port 80.
Linux CLI
ssh -L 5000:localhost:[1] user@remote_host
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using SSH port 22 instead of the service port.
Using an unrelated port number.
✗ Incorrect
Port 80 is the standard HTTP port, commonly forwarded for web services.
4fill in blank
hardFill both blanks to create a command that forwards local port 3306 to remote MySQL port 3306 and runs without opening a shell.
Linux CLI
ssh [1] [2] user@remote_host
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -R instead of -L for local forwarding.
Forgetting -N to keep the session quiet.
✗ Incorrect
Use -L for local forwarding and -N to prevent opening a remote shell.
5fill in blank
hardFill all three blanks to create a command that forwards remote port 5432 to local port 5432, uses port 2222 for SSH, and runs without executing remote commands.
Linux CLI
ssh [1] [2] [3] user@remote_host
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -L instead of -R for remote forwarding.
Omitting the SSH port option.
Not using -N to prevent remote shell.
✗ Incorrect
Use -R for remote forwarding, -p to specify SSH port, and -N to avoid remote shell.