■ Use to enable password checking at login.
■ The default setting is to enable a password.
■ Example
host1(config)#line vty 1 4
host1(config-line)#login
■ Use the no version to disable password checking and allow access without a
password.
■ See login.
password
Use to specify a password on the console, a line, or a range of lines.■
■ If you enable password checking, but do not configure a password, the system
will not allow you to access virtual terminals.
■ Use the following keywords to specify the type of password you will enter:
■ 0 (zero)—Unencrypted password
■ 5—Secret
■ 7—Encrypted password
NOTE: To use an encrypted password or a secret, you must follow the procedure in
“Setting Basic Password Parameters” on page 418 to obtain the encrypted password
or secret. You cannot create your own encrypted password or secret; you must use
a system-generated password or secret.
■ Example 1 (unencrypted password)
host1(config-line)#password 0 mypassword
■ Example 2 (secret)
host1(config-line)#password 5 bcA";+1aeJD8)/[1ZDP6
■ Example 3 (encrypted password)
host1(config-line)#password 7 dq]XG`,%N"SS7d}o)_?Y
■ Use the no version to remove the password. By default, no password is specified.
■ See password.
Erasing the Console Password
If you forget the console password, you can erase the existing value and configure
a new one. This action deletes all authentication for the console line. To erase existing
passwords:
Setting and Erasing Passwords ■ 425
Chapter 7: Passwords and Security