Setting a Console Password

By default, there is no console password.

To set a console password:

  1. Make sure that you know the enable password for the system.

    If you need to reset the enable password, see Privilege Levels Overview.

  2. Access Privileged Exec mode, and enter the enable password if prompted.
  3. Access Global Configuration mode.
  4. Access Line Configuration mode.
    host1(config)#line console 0
  5. Enable password checking at login.
    host1(config-line)#login
  6. Specify a password.
    host1(config-line)#password 7 dq]XG`,%N"SS7d}o)_?Y

Note: To use an encrypted password or a secret, you must follow the procedure in Setting Basic and Enable Password Parameters 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.