ssh server rsa-key min-length

Function

The ssh server rsa-key min-length command set the minimum length of RSA public keys allowed by the SSH server.

The undo ssh server rsa-key min-length command restores the default minimum length of RSA public keys allowed by the SSH server to 512 bits.

By default, the minimum length of RSA public keys allowed by the SSH server is 512 bits.

Format

ssh server rsa-key min-length min-length-val

undo ssh server rsa-key min-length

Parameters

Parameter Description Value
min-length-val

Set the minimum key bits of of RSA key.

The value is an integer that ranges from 512 to 4096. The default value is 512.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ssh-server write

Usage Guidelines

You can run this command to configure the minimum length of RSA public keys allowed by the SSH server. After the configuration, the user can bind the RSA public key only when the length of the RSA public key is greater than or equal to the specified value.

Example

# Set the minimum length of RSA public keys allowed by the SSH server to 2048 bits.
<HUAWEI> system-view
[~HUAWEI] ssh server rsa-key min-length 2048
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >