<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname route
[route]aaa
[route-aaa]local-user dyh password cipher 123 创建用户dyh,密码123 Info: Add a new user.
[route-aaa]local-user dyh service-type ssh 开启用户ssh服务功能
[route-aaa]local-user dyh privilege level 3 级别3,等于root,默认值为0(参观级别,不能改配置) 1(可以对系统进行简单维护 2 (较高于1)
[route-aaa]quit
[route]user-interface vty 0 4 允许登录0 1 2 3 4 ,5个人登录
[route-ui-vty0-4]authentication-mode aaa
[route-ui-vty0-4]protocol inbound ssh 允许进入设备的协议为ssh
[route-ui-vty0-4]quit [route]stelnet server enable 开启远程登录功能 Info: Succeeded in starting the STELNET server.
[route]int g0/0/0 [route-GigabitEthernet0/0/0]ip add 192.168.1.1 24 配置ip
交换机(pc)
[sw1]int vlan 1
[sw1-Vlanif1]ip add 192.168.1.2 24
[sw1-Vlanif1]ping 192.168.1.1
[sw1-Vlanif1]quit
[sw1]ssh client first-time enable 登录命令
[sw1]stelnet 192.168.1.1 输入ip
Please input the username:dyh
Trying 192.168.1.1 ... Press CTRL+K to abort Connected to 192.168.1.1 ... The server is not authenticated. Continue to access it? [Y/N] :y
Save the server's public key? [Y/N] :y
The server's public key will be saved with the name 192.168.1.1. Please wait...
Enter password:
<route>
Info: The connection was closed by the remote host.
标签:aaa,1.1,登录,route,192.168,ssh,sw1,网络设备 From: https://www.cnblogs.com/dyh6/p/17741340.html