Cisco devices allow password protection of console access. This tech-recipe describes configuring the use of a password to protect the console of a Cisco switch.
To set the console password to keepout, enter the following commands from global configuration mode:
line console 0
password keepout
login
The login statement enables logins from the console.