aaa本地认证,配置用户及用户权限
aaa本地认证,配置用户及用户权限
(0)
最佳答案
配置telnet登录:
telnet server enable
line vty 0 20
authentication-mode scheme
quit
local-user admin class manage
password simple admin
service-type telnet
authorization-attribute user-role network-admin
quit
save
配置ssh登录:
ssh server enable
public-key local create rsa
public-key local create dsa
line vty 0 20
authentication-mode scheme
protocol inbound all
quit
local-user admin class manage
password simple admin
service-type ssh
authorization-attribute user-role network-admin
quit
ssh user admin service-type stelnet authentication-type password
save
配置http和https登录:
ip http enable
ip https enable
local-user admin class manage
password simple admin
service-type http https
authorization-attribute user-role network-admin
quit
save
(0)
您好,参考
V5平台Telnet配置
[H3C]telnet server enable 使能Telnet服务器端功能
[H3C]user-interface vty 0 4 进入VTY用户界面视图 VTY0-4
[H3C]authentication-mode {none|password|scheme} VTY用户界面视图配置验证方式
password需要密码登陆
[H3C-ui-vty0 4]set authentication password {cipher|simple} password 如果选择了password验证必须配置一个验证码
[H3C-ui-vty0 4]user privilege level 3 设置用户登录后的级别
scheme需要账户和密码登陆
[H3C]local-user system 创建用户
[H3C-luser-system]password {cipher|simple} password 配置密码
[H3C-luser-system]service-type telnet 设置服务类型
[H3C-luser-system]level 3
[H3C-luser-system]authorization-attribute level 3
V5 ssh配置
1.生成RSA和DSA密钥对
[H3C]public-key local create rsa
[H3C]public-key local create dsa
2.设置用户接口上的认证模式为AAA,并让用户接口支持SSH协议
[H3C]user-interface vty 0 4
[H3C-ui-vty0-4]authentication-mode scheme
[H3C-ui-vty0-4]protocol inbound ssh
3.创建用户admin,设置认证密码为luwenju-!@# 登录协议为SSH,能访问的命令级别 为 3
[H3C]local-user admin
[H3C-luser-admin]password cipher luwenju-!@#
[H3C-luser-admin]service-type ssh level 3
4.指定用户admin的认证方式为password
[H3C]ssh user admin authentication-type password
开启SSH服务和创建登录账号密码
# 进入系统视图,并开启ssh服务,默认开启。
<H3C> system-view
[H3C] SSH server enable
# 创建本地账号abc,密码为123456,权限级别为network-admin。//如果现场同一个本地用户既需要通过ssh登录,又需要console登录,则服务器类型需要添加 terminal
[H3C] local-user abc
[H3C-luser-abc] password simple 123456
[H3C-luser-abc] service-type ssh terminal
[H3C-luser-abc] authorization-attribute user-role network-admin
[H3C-luser-abc] quit
# 配置VTY接口认证模式为scheme模式(用户名+密码认证)。用于ssh登录
[H3C] line vty 0 4
[H3C-ui-vty0-4] authentication-mode scheme //另两种认证模式为None(无密码)和Password(单密码)
[H3C-ui-vty0-4] quit
开启telnet服务和创建登录账号密码
2.1 配置步骤
# 进入系统视图,并开启Telnet服务,默认开启。
<H3C> system-view
[H3C]telnet server enable
# 创建本地账号abc,密码为123456,权限级别为network-admin。//如果现场同一个本地用户既需要通过ssh登录,又需要console登录,则服务器类型需要添加 terminal
[H3C] local-user abc
[H3C-luser-abc] password simple 123456
[H3C-luser-abc] service-type telnet terminal
[H3C-luser-abc] authorization-attribute user-role network-admin
[H3C-luser-abc] quit
# 配置VTY接口认证模式为scheme模式(用户名+密码认证)。用于ssh登录
[H3C] line vty 0 4
[H3C-ui-vty0-4] authentication-mode scheme //另两种认证模式为None(无密码)和Password(单密码)
[H3C-ui-vty0-4] quit
以下是开启WEB的参考命令:
2、开启HTTP HTTPS功能
[H3C]ip http enable
[H3C]ip https enable
3、创建用户名、密码,并赋予HTTP HTTPS的权限
[H3C]local-user admin
New local user added.
[H3C-luser-manage-admin]password simple admin
[H3C-luser-manage-admin]service-type http https
[H3C-luser-manage-admin]authorization-attribute user-role network-admin
[H3C-luser-manage-admin]quit
(0)
暂无评论
您好,请知:
可参考如下配置命令:
1、配置telnet登录:
telnet server enable
line vty 0 20
authentication-mode scheme
quit
local-user admin class manage
password simple admin
service-type telnet
authorization-attribute user-role network-admin
quit
2、配置ssh登录:
ssh server enable
line vty 0 20
authentication-mode scheme
protocol inbound all
quit
local-user admin class manage
password simple admin
service-type ssh
authorization-attribute user-role network-admin
quit
3、配置http和https登录:
ip http enable
ip https enable
local-user admin class manage
password simple admin
service-type http https
authorization-attribute user-role network-admin
quit
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论