Ad space (banner)
📡Networking Lessons
Lesson 30 / 39

Requiring the Password at Login with login

When you've set a password but the device never asks for it, the missing piece is login. Used in line configuration mode, it makes password entry mandatory when logging in over that connection method.

The syntax is login, inside a mode such as line console 0 or line vty 0 4, as a set with the password command.

Running login means that from then on, logging in over that connection method requires the password configured earlier with password.

A common stumble is setting password but forgetting login, leaving the device wide open with no password prompt at all. The two are always configured together.

In real work, enabling password protection on both console and remote access is a baseline security task performed on every device.

Networking
Try it (type this into the pseudo terminal)
login

🧑‍💻 You can type this command into the Networking pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)