<SW1>telnet 192.168.10.2 //Telent192.168.10.2设备
Trying 192.168.10.2 ...
Press CTRL+K to abort
Connected to 192.168.10.2 ...
Login authentication
Username:admin //输入用户名
Password: //输入密码
Info: The max number of VTY users is 5, and the number
of current VTY users on line is 1.
The current login time is 2021-05-24 19:44:54.
<SW2> //登录成功
<SW1>telnet 192.168.10.2 //Telent192.168.10.2设备
Trying 192.168.10.2 ...
Press CTRL+K to abort
Connected to 192.168.10.2 ...
Info: The max number of VTY users is 5, and the number
of current VTY users on line is 1.
The current login time is 2021-05-24 20:53:28.
<SW2> //登录成功
配置passwrd认证
SW2——配置认识模式为password认证
[SW2]user-interface vty 0 4 //用户指定虚拟用户终端接口
[SW2-ui-vty0-4]authentication-mode password //配置用户认证模式为password
[SW2-ui-vty0-4]set authentication password ?
cipher Set the password with cipher text //使用密文设置密码
simple Set the password in plain text //以明文方式设置密码
[SW2-ui-vty0-4]set authentication password cipher admin //配置密码
[SW2-ui-vty0-4]user privilege level 3 //配置用户等级
[SW2-ui-vty0-4]quit //退出
[SW2]
SW1——Telnet登录192.168.10.2设备
<SW1>telnet 192.168.10.2 //Telent192.168.10.2设备
Trying 192.168.10.2 ...
Press CTRL+K to abort
Connected to 192.168.10.2 ...
Login authentication
Password: 输入密码
Info: The max number of VTY users is 5, and the number
of current VTY users on line is 1.
The current login time is 2021-05-24 21:16:12.
<SW2> //登录成功