Difficulty: Easy
Correct Answer: line vty 0 4
Explanation:
Introduction / Context:
Remote management of Cisco routers and switches typically uses virtual terminal lines (VTYs) for Telnet or SSH sessions. Correctly entering line configuration mode is required to set passwords and access control.
Given Data / Assumptions:
Concept / Approach:
To set the password for remote access, enter global configuration mode and then the line configuration for vty 0 4. Inside that context, commands such as password, login, and transport input ssh or telnet are applied. Console and aux contexts do not control VTY authentication.
Step-by-Step Solution:
Verification / Alternative check:
show running-config confirms the presence of a line vty 0 4 section with the configured password or AAA method lists.
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting to enable login under the VTY lines; not using transport input ssh to disable insecure Telnet on production devices; relying on line passwords instead of AAA with local or remote user databases.
Final Answer:
line vty 0 4
Discussion & Comments