XK0-005 · Question #656
A developer is unable to access a Linux server via SSH. Given the following output: Which of the following explains why the developer is unable to log in to the server?
The correct answer is B. The developer's account has been locked out. The provided error message explicitly indicates that the developer's account on the server is locked, preventing any login attempts including SSH.
Question
A developer is unable to access a Linux server via SSH. Given the following output:
Which of the following explains why the developer is unable to log in to the server?
Options
- AThe developer's private key has been deleted from the server.
- BThe developer's account has been locked out.
- CThe developer's public key is in the wrong location.
- DSSH has been disabled for user log-in.
How the community answered
(57 responses)- A5% (3)
- B91% (52)
- C2% (1)
- D2% (1)
Why each option
The provided error message explicitly indicates that the developer's account on the server is locked, preventing any login attempts including SSH.
A missing private key on the client side would prevent authentication, but the server-side message "Account locked" points to an issue with the user's account state on the server, not a client-side key problem.
The error message "Account locked. Try again later" explicitly states that the developer's account is locked. This status directly prevents any login attempts, including those made via SSH, regardless of correct credentials or keys.
A public key in the wrong location on the server would typically result in "Permission denied (publickey)" or similar errors, not an "Account locked" message.
If SSH were disabled for user login, the server would likely refuse the connection much earlier or give a more general "Connection refused" error, not an "Account locked" message after the authentication attempt.
Concept tested: SSH authentication failure - account lockout
Source: https://man7.org/linux/man-pages/man5/shadow.5.html
Topics
Community Discussion
No community discussion yet for this question.