Back to Command Reference
Line ConfigDomain 5.0

login local

Executed inside Line Configuration mode, this command instructs the router's virtual terminal lines to demand both a username AND a password from remote users, verifying those credentials against the router's internally configured database.

CLI Deployment Scenarios

! Step 1: Create the local database entry
Router(config)# username admin privilege 15 secret Secure123
! Step 2: Enter the VTY lines
Router(config)# line vty 0 4
! Step 3: Force the lines to use the database
Router(config-line)# login local

CCNA Exam Gotchas

[!]

"login" vs "login local"

If you type login by itself, the router assumes you are using a simple, globally shared line password (set via the password [pass] command under the line). It will only prompt the user for a password, ignoring usernames entirely.

You must append the word local to trigger the username database check.