Which of the following commands will allow you to set your Telnet password on…
2023
Which of the following commands will allow you to set your Telnet password on a Cisco router?
- A.
line telnet 0 4
- B.
line aux 0 4
- C.
line vty 0 4
- D.
line con 0
Attempted by 808 students.
Show answer & explanation
Correct answer: C
The command line vty 0 4 places you in a prompt that will allow you to set or change your Telnet password.
Enter global configuration mode: configure terminal
Enter the virtual terminal lines for remote access: line vty 0 4
Set the password for those lines: password <your_password>
Require the password for Telnet sessions: login
Optional: to authenticate against local user accounts use 'login local' instead of 'login'; to restrict allowed protocols use 'transport input telnet' or 'transport input telnet ssh'.
Exit and save the config: end then write memory
Note: 'line con 0' configures the console (local) port and 'line aux' configures the auxiliary port; neither is used to set Telnet access.