首页 > 代码库 > 华为 AP 3010 SSH 配置

华为 AP 3010 SSH 配置

华为 SSH 配置 

1,配置 本地RSA 密钥 

[Huawei]rsa local-key-pair create 

The key name will be: Host

% RSA keys defined for Host already exist.

Confirm to replace them? (y/n)[n]:y

The range of public key size is (512 ~ 2048).

NOTES: If the key modulus is greater than 512,

       It will take a few minutes.

Input the bits in the modulus[default = 2048]:512

Generating keys...

...++++++++++++

..++++++++++++

......................++++++++

.......++++++++

2.设置VTY用户只能用SSH模式

[Huawei]user-interface vty 0 4 

[Huawei-ui-vty0-4]authentication-mode aaa

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

3.创建aaa用户及密码

[Huawei]aaa #进入aaa

[Huawei-aaa]local-user admin password cipher 123456 #创建用户名和密码

[Huawei-aaa]local-user admin privilege level 3 #设置权限

4.配置 SSH 用户的认证方式

[Huawei]ssh user admin authentication-type password 

5.开启stelnet 

[Huawei]stelnet server enable 



华为 AP 3010 SSH 配置