当前位置:文档之家› 登录基础配置

登录基础配置

路由器登录到路由器:
telnet方式: B设备上:[H3C]telnet client source ip 1.1.1.2,quit,telnet 1.1.1.1
ssh方式:B设备上:ssh2 1.1.1.1



Console口登录认证配置举例(password方式)
system-view
[Switch1] user-interface console 0
[Switch1-ui-console0] authentication-mode password
[Switch1-ui-console0] set authentication password simple test
[Switch1-ui-console0] qui

Console口登录本地认证配置举例(scheme方式)
# 配置console口登录设备的认证方式为scheme。
system-view
[Switch1] user-interface console 0
[Switch1-ui-console0] authentication-mode scheme
[Switch1-ui-console0] quit
# 配置本地用户,用户名为test,密码为test,配置服务类型为terminal,本地用户角色为network-admin。
[Switch1] local-user test class manage
[Switch1-luser-manage-test] password simple test
[Switch1-luser-manage-test] authorization-attribute user-role network-admin
[Switch1-luser-manage-test] service-type terminal
[Switch1-luser-manage-test] quit


Telnet登录认证配置举例(password方式)
system-view
[Switch1] telnet server enable
[Switch1] user-interface vty 0 63
[Switch1-ui-console0] authentication-mode password
[Switch1-ui-console0] set authentication password simple test
[Switch1-ui-console0] qui


Telnet登录本地认证配置举例(scheme方式)
# 配置console口登录设备的认证方式为scheme。
system-view
[Switch1] user-interface vty 0 63
[Switch1-ui-console0] authentication-mode scheme
[Switch1-ui-console0] quit
# 配置本地用户,用户名为test,密码为test,配置服务类型为terminal,本地用户角色为network-admin。
[Switch1] local-user test class manage
[Switch1-luser-manage-test] password simple test
[Switch1-luser-manage-test] authorization-attribute user-role network-admin
[Switch1-luser-manage-test] service-type terminal telnet
[Switch1-luser-manage-test] quit





SSH登录本地认证配置举例(scheme方式)
# 配置console口登录设备的认证方式为scheme。
system-view
[Switch1] ssh server enable
[Switch1] public-key local create rsa
[Switch1] public-key local create dsa
[Switch1] user-interface vty 0 63
[Switch1-ui-console0] authentication-mode scheme
[Switch1-ui-console0] protocol inbound ssh
[Switch1-ui-console0] quit
# 配置本地用户,用户名为test,密码为test,配置服务类型为terminal,本地用户角色为network-admin。
[Switch1] local-user test class manage
[Switch1-luser-manage-test] password simple test
[Switch1-luser-manage-test] authorization-attribute user-role network-admin
[Switch1-luser-manage-test] service-type terminal ssh
[Switch1-luser-manage-test] quit




相关主题
文本预览
相关文档 最新文档