XK0-005 · Question #1624
An administrator would like to securely connect to a server and forward port 8080 on a local machine to port 80 on the server. Which of the following commands should the administrator use to satisfy…
The correct answer is A. ssh -L 8080:localhost:80 admin@server. This command will create a local port forwarding, which means that connections from the SSH client are forwarded via the SSH server, then to a destination server. In this case, the destination server is the same as the SSH server (localhost), and the destination port is 80. The…
Question
Options
- Assh -L 8080:localhost:80 admin@server
- Bssh -R 8080:localhost:80 admin@server
- Cssh -L 80:localhost:8080 admin@server
- Dssh -R 80:localhost:8080 admin@server
How the community answered
(17 responses)- A88% (15)
- C6% (1)
- D6% (1)
Explanation
This command will create a local port forwarding, which means that connections from the SSH client are forwarded via the SSH server, then to a destination server. In this case, the destination server is the same as the SSH server (localhost), and the destination port is 80. The SSH client will listen on port 8080 on the local machine, and any connection to that port will be forwarded to port 80 on the server. This way, the administrator can securely access the web service running
Topics
Community Discussion
No community discussion yet for this question.