首页 科技问答 h3c 5024 v5交换机如何配置本地console密码和ssh管理员密码

h3c 5024 v5交换机如何配置本地console密码和ssh管理员密码

科技问答 163
1688742965,CRM论坛(CRMbbs.com)——一个让用户更懂CRM的垂直性行业内容平台,CRM论坛致力于互联网、客户管理、销售管理、SCRM私域流量内容输出5年。 如果您有好的内容,欢迎向我们投稿,共建CRM多元化生态体系,创建CRM客户管理一体化生态解决方案。内容来源:知了社区

问题描述:

h3c  5024v5如何配置console管理员密码和ssh管理员接口密码

组网及组网描述:

5小时前提问

 配置步骤

3.1 设备作为SSH服务器端设置

# 生成RSA密钥对。

<H3C>system-view   

System View: return to User View with Ctrl+Z.

[H3C]public-key local create rsa

The range of public key size is (512 ~ 

NOTES: If the key modulus is greater than 512,      

It will take a few minutes.     

Press CTRL+C to abort.

Input the bits of the modulus[default = 1024]:

Generating Keys...

++++++++++++++++++++++++++++++++++++++

+++++++++++

+++++++++++++

+++

# 生成DSA密钥对。

 [H3C]public-key local create dsa

The range of public key size is (512 ~ 

NOTES: If the key modulus is greater than 512,      

It will take a few minutes.     

Press CTRL+C to abort.

Input the bits of the modulus[default = 1024]:

Generating Keys...

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++*+++++++++++++

 

# 启动SSH服务器。

[H3C]ssh server enable 

# 配置VLAN虚接口Vlan-interface 1的IP地址为192.168.1.1,此地址作为SSH服务器的登录地址。

[H3C]interface Vlan-interface 1

[H3C-Vlan-interface1] ip address 192.168.1.1 255.255.255.0

[H3C-Vlan-interface1]quit

# 设置SSH客户端登录用户界面的认证方式为password认证。

[H3C] user-interface vty 0 4    

[H3C-ui-vty0-4]authentication-mode scheme 

# 设置Switch上远程用户登录协议为SSH。

[H3C-ui-vty0-4]protocol inbound ssh

[H3C-ui-vty0-4]quit

# 创建本地用户client001,密码为aabbcc,并设置用户访问的命令级别为最高级别3。

[H3C]local-user client001

[H3C-luser-client001]password simple aabbcc

[H3C-luser-client001]service-type ssh

[H3C-luser-client001] authorization-attribute level 3

[H3C-luser-client001]quit

# 配置SSH用户client001的服务类型为Stelnet,认证方式为password认证(此步骤非必配)。

[H3C]ssh user client001 service-type stelnet authentication-type password

#保存配置

[H3C]save force




2 配置Console口密码登录方式

2.1  密码登录方式配置步骤

# 进入系统视图

<H3C>system

# 配置AUX接口认证模式为password模式(密码认证)

[H3C]user-interface aux 0

[H3C-line-aux0] authentication-mode password  //另两种认证模式为None (无密码)和 Scheme (用户名密码)

[H3C-line-aux0]set authentication password simple 123456   // 设置登陆密码为 123456

[H3C-line-aux0]user privilege level 3   //权限级别为三级权限即管理员权限

[H3C-line-aux0]quit

# 保存配置

[H3C] save

2.2  密码登录方式快速配置

# 可复制如下内容直接粘贴到设备命令行,实现快速配置,注意提前修如下红色部分改账号和密码。

system

user-interface aux 0

authentication-mode password

set authentication password simple 123456

user privilege level 3

quit

save

2.3  用户名密码登录方式配置步骤

# 进入系统视图

<H3C>system

# 配置AUX接口认证模式为scheme模式(用户名+密码认证)。

[H3C]user-interface aux 0

[H3C-ui-aux0]authentication-mode scheme  // 另两种认证模式为 None (无密码)和 Password (密码方式)

[H3C-ui-aux0]quit

# 创建本地账号h3c,密码为123456,权限级别为3级管理员权限

[H3C] local-user h3c

[H3C-luser-abc]password simple 123456

[H3C-luser-abc]service-type  terminal  // 设置用户类型为 terminal ,即 Console登陆类型

[H3C-luser-abc]authorization-attribute level  3

[H3C-luser-abc]quit

# 保存配置

[H3C] save

2.4  用户名密码登录方式快速配置

# 可复制如下内容直接粘贴到设备命令行,实现快速配置,注意提前修如下红色部分改账号和密码。

system

user-interface aux 0

authentication-mode scheme

quit

local-user h3c

password simple 123456

service-type  terminal

authorization-attribute level  3

quit

save

5小时前回答

暂无

你正在,h3c 5024 v5交换机如何配置本地console密码和ssh管理员密码