Command
Password
Use
Sets the password for virtual terminal login.
Syntax
Router(config-line)#password <password>
Example
In this example a password is set for vty 0 4 login on R2.
R2#conf t |
The config is shown with the new password set for vty login.
R2(config-line)#do show run | sec vty 0 4 |
A telnet session is initiated from R3 to R2. Notice that login now requires password.
R3#telnet 10.2.2.2 Trying 10.2.2.2 … Open User Access Verification Password: ***** |