重试次数配置_Stelnet(ssh)登陆华为交换机配置教程

本文档详细介绍了如何在华为交换机上使用STelnet V2进行安全登录,包括生成RSA/DSA本地密钥对、配置SSH服务器参数如重试次数、端口和超时时间,以及设置SSH用户权限和认证方式。通过这些步骤,可以提升设备登录的安全性。
摘要由CSDN通过智能技术生成

使用STelnet V1协议存在安全风险,建议使用STelnet V2登录设备。

21bbc1ea2de645d8bac4b2a13bcbc73a.png

1、生成本地密钥对

密钥保存在交换机中单不保存在配置文件中

[Huawei]rsa ?

key-pair RSA key pair

local-key-pair Local RSA public key pair operations

peer-public-key Remote peer RSA public key configuration

[Huawei]rsa local-key-pair ?

create Create new local public key pairs

destroy Destroy the local public key pairs # 销毁本地密钥对

[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]:1024 # 密钥对长度越大,密钥对安全性就越好,建议使用最大的密钥对长度

Generating keys...

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

.++++++

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

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

[Huawei]dsa local-key-pair ?

create Create a new local key-pair

destroy Destroy the local key-pair

[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 : 512, 1024, 2048.

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

Please input the modulus [default=512]:1024

Info: Generating keys...

Info: Succeeded in creating the DSA host keys.

----------------------查看密钥对-----------------------

[Huawei]display dsa local-key-pair public

=====================================================

Time of Key pair created: 11:37:32 2016/3/30

Key name : Hua

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值