Exam 200-301 | Question id=5357 | Security Fundamentals |
Which set of Cisco Internetwork Operating System (IOS) commands is used on Cisco routers to set a password for Telnet lines?
A. |
router(config-router)# line vty 0 4
router(config-line)# login
router(config-line)# password password
| |
B. |
router(config)# line telnet 0 4
router(config-line)# login
router(config-line)# password password
| |
C. |
router(config)# line aux 0
router(config-line)# login
router(config-line)# password password
| |
D. |
router(config)# line vty 0 4
router(config-line)# login
router(config-line)# password password
|
The following commands are used on Cisco routers to set a password for Telnet lines:
router(config)# line vty 0 4
router(config-line)# login
router(config-line)# password password
Assigning a password to the VTY lines is required for remote connections to the device to be possible. If a password has not been configured the following error message will be generated when the connection is attempted:
Password required but not set
[Connection to foreign host 106.5.5.1 closed by foreign host]