首页 > 编程知识 正文

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

时间:2023-05-04 00:04:33 阅读:226009 作者:3631

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

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。