GIAC Penetration Tester (GPEN) — Question 57
You are pen testing a network and have shell access to a machine via Netcat. You try to use ssh to access another machine from the first machine. What is the expected result?
Answer options
- A. The ssh connection will succeed If you have root access on the intermediate machine
- B. The ssh connection will fail
- C. The ssh connection will succeed
- D. The ssh connection will succeed if no password required
Correct answer: C
Explanation
The correct answer is C because once you have shell access to a machine, you can use SSH to connect to other machines on the network. Options A and D introduce conditions that are not necessary for a successful connection, and option B incorrectly states that the connection will fail.