一、tenlen方式
1.直接配置密码
[AR1]user-interface vty 0 4 (进入vty)
AR1-ui-vty0-4]authentication-mode password (设置连接方式)
Please configure the login password (maximum length 16):hw123(设置密码)
[AR1-ui-vty0-4]user privilege level 15(设置级别)
2.用户名方式(aaa)
[AR1]user-interface vty 0 4 (进入vty)
[AR1-ui-vty0-4]authentication-mode aaa
[AR1-ui-vty0-4]quit
[AR1]aaa
[AR1-aaa]local-user huawe privilege level 15 password cipher hw123(配置用户名,级别,密码)
[AR1-aaa]local-user huawe service-type telnet(配置登录方式默认telent)
忘记远程登录密码后从console口登录进去改密码
[AR1-aaa]local-user huawe password cipher hw1234
二、SSH方式
[AR1]user-interface vty 0 4 (进入vty)
[AR1-ui-vty0-4]authentication-mode aaa
[AR1-ui-vty0-4]protocol inbound ssh (ssh2登录)
[AR1-ui-vty0-4]quit
[AR1]aaa
[AR1-aaa]local-user huaw