当前位置:   article > 正文

设置华为交换机使用账号密码方式进行SSH登录_华为交换机秘钥登录

华为交换机秘钥登录

1、创建rsa本地密钥对与创建账号

[Huawei]rsa local-key-pair create 

The key name will be: Huawei_Host

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 = 512]:

Generating keys...

2、华为交换机上面创建账号

aaa

local-user admin password cipher TKG40##Y,C!NZPO3JBXBHA!!

local-user admin privilege level 15

local-user admin service-type ssh

3、开启ssh服务以及ssh用户:

stelnet server enable

ssh user admin

ssh user admin authentication-type password

ssh user admin service-type stelnet

4、VTY下添加设置:

[Huawei]user-interface vty 0 4

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/码创造者/article/detail/863321
推荐阅读
相关标签
  

闽ICP备14008679号