服务端配置:
1.配置接口略
2.服务端 创建用户
<HUAWEI> system-view
[Huawei]aaa
[Huawei-aaa]local-user admin password cipher admin123 // 创建用户名和密码
[Huawei-aaa]local-user admin privilege level 15 // 配置用户级别(最大15)
[Huawei-aaa]local-user admin service-type telnet ssh http // 配置用户服务类型(推荐全选)
常用的接入类型:
ftp FTP user //文件上传
http Http user //图形化
ppp PPP user //远程vty
ssh SSH user //远程vty
telnet Telnet user //远程vty
terminal Terminal user //console口
web Web authentication user //图形化
3.配置VTY(远程连接)接口认证方式:
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa // 将VTY接口的认证方式配置为AAA
[Huawei-ui-vty0-4]protocol inbound all // 指定接入协议为所有(telnet ssh)
客户端配置:
1.配置接口IP略
2.连接服务端
<Huawei>telnet 10.0.0.1 // 使用telnet远程连接服务端
Press CTRL_] to quit telnet mode
Trying 10.0.0.1 ...
Connected to 10.0.0.1 ...
Login authentication
Username:admin
Password:admin123