Procedure Establishing Username Authentication You can create a username-based authentication system, which is useful in the following situations: Configuring Authentication Establishing Username Authentication Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password, if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 line [aux | console | tty | vty] line-number [ending-line-number] Example: Device(config)# line console 0 Enters line configuration mode. Step 4 password password Example:
Device(config-line)# secret word Assigns a password to a terminal or other device on a line. The password checker is case sensitive and can include spaces; for example, the password “Secret” is different from the password “secret,” and “two words” is an acceptable password. Step 5 login Example: Device(config-line)# login Enables password checking at login. You can disable line password verification by disabling password checking by using the no version of this command. Note The login command only changes username and privilege level but it does not execute a shell; therefore autocommands will not be executed.
To execute autocommands under this circumstance, you need to establish a Telnet session back into the device (loop-back). Make sure that the device has been configured for secure Telnet sessions if you choose to implement autocommands this way. Step 6 end Example: Device(config-line)# end Exits line configuration mode and returns to privileged EXEC mode. Configuring Authentication 31