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

Setting a Password with password

When you want to keep unauthorized users from logging into the device, use password. It is used inside line configuration modes and sets the password demanded when logging in over that connection method.

The syntax is password password-string, inside a mode such as line console 0 or line vty 0 4.

Running password cisco123 registers "cisco123" as the password required when logging in over that connection method (console or remote).

A common stumble: setting password alone does not actually make the device ask for it. It only takes effect combined with the login command, covered next.

In real work, this minimum defense against unauthorized access is configured on every connection method without exception.

Networking
Try it (type this into the pseudo terminal)
password cisco123

🧑‍💻 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)