H3C交换机创建ssh用户登录和设置aux密码

一、ssh登录设置

1、配置ssh密码登录,登录级别为1  (交换机型号:H3C s3100)

public-key local create rsa    #以前配过ssh此步骤可以省略

user-interface vty 0 4

authentication-mode scheme

protocol inbound ssh

local-user hualu#增加用户为hualu

password cipher 123456

service-type ssh level 1#ssh登录级别为1

ssh user hualu authentication-type password

如果是5500:执行如下命令:

service-type ssh

authorization-attribute level 1

ssh user hualu service-type all authentication-type password


2、设置acl访问规则

acl number 2000

rule 1 permit source 10.2.33.241 0  #绑定acl 2000到vty接口

user-interfac vty 0 4

acl 2000 inbound

3、修改超级权限密码:

super password cipher 123456

ssh server enable

4、保存配置输入save命令

[dmz_7503-2]save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg](To leave the existing filename unchanged, press the enter key):flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...Now saving current configuration to the device.Saving configuration flash:/startup.cfg. Please wait...................... Saved the current configuration to mainboard device successfully.. Saved the current configuration to slaveboard device successfully.Configuration is saved to device successfully.


二、设置AUX登录密码:

[H3C]user-interface aux 0

[H3C-ui-aux0]authentication-mode password

[H3C-ui-aux0]set authentication password cipher 123456         #123456是密码

[H3C-ui-aux0]history-command max-size 20

[H3C-ui-aux0]idle-timeout 6 0

[H3C-ui-aux0]screen-length 30

[H3C-ui-aux0]quit

[H3C]save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait....

Configuration is saved to device successfully.