华为交换机S5735S配置SSH

该文章详细介绍了如何在华为设备上生成本地密钥对,创建SSH用户client001并设置密码认证,开启STelnet服务,以及配置SSH用户client001使用STelnet服务的过程。
摘要由CSDN通过智能技术生成

1、在服务器端生成本地密钥对

<HUAWEI>system-view

[HUAWEI] dsa local-key-pair create 

Info: The key name will be: HUAWEI_Host_DSA.

Info: The key modulus can be any one of the following : 1024, 2048.

Info: If the key modulus is greater than 512, it may take a few minutes.     

Please input the modulus [default=2048]: 此处需要手动输入,比如输入2048

Info: Generating keys...

Info: Succeeded in creating the DSA host keys

 

2、在服务器端创建SSH用户

a.配置VTY用户界面。

[HUAWEI] user-interface vty 0 14

[HUAWEI-ui-vty0-14] authentication-mode aaa

[HUAWEI-ui-vty0-14] protocol inbound ssh

[HUAWEI-ui-vty0-14] quit

 

b.新建用户名为client001的SSH用户,且认证方式为Password。

[HUAWEI] aaa

[HUAWEI-aaa] local-user client001 password irreversible-cipher Huawei@123

[HUAWEI-aaa] local-user client001 privilege level 3

[HUAWEI-aaa] local-user client001 service-type ssh

[HUAWEI-aaa] quit

[HUAWEI] ssh user client001 authentication-type password

 

3、SSH服务器端开启STelnet服务功能

[HUAWEI] stelnet server enable

 

 

4、配置SSH用户client001的服务方式为STelnet

[HUAWEI] ssh user client001 service-type stelnet

 

5、需要配置ssh源接口才行。

[HUAWEI]ssh server-source all-interface

  • 5
    点赞
  • 29
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值