ssh server cipher

Function

The ssh server cipher command configures encryption algorithms on an SSH server.

The undo ssh server cipher command restores the default encryption algorithms on the SSH server.

By default, the SSH server supports these encryption algorithms: AES128_CTR, AES256_CTR, AES192_CTR, AES128_GCM, AES256_GCM. The SSH server supports these HMAC authentication algorithms: SHA2_512 and SHA2_256.

Format

ssh server cipher { des_cbc | 3des_cbc | aes128_cbc | aes192_cbc | aes256_cbc | aes128_ctr | aes256_ctr | arcfour128 | arcfour256 | blowfish_cbc | aes128_gcm | aes256_gcm | aes192_ctr } *

undo ssh server cipher

Parameters

Parameter Description Value
des_cbc

Specifies the DES encryption algorithm in CBC mode.

-

3des_cbc

Specifies the 3DES encryption algorithm in CBC mode.

-

aes128_cbc

Specifies the AES128 encryption algorithm in CBC mode.

-

aes192_cbc

Specifies the AES192 encryption algorithm in CBC mode.

-

aes256_cbc

Specifies the AES256 encryption algorithm in CBC mode.

-

aes128_ctr

Specifies the AES128 encryption algorithm in CTR mode.

-

aes256_ctr

Specifies the AES256 encryption algorithm in CTR mode.

-

arcfour128

Specifies the Arcfour128 encryption algorithm.

-

arcfour256

Specifies the Arcfour256 encryption algorithm.

-

blowfish_cbc

Specifies the Blowfish encryption algorithm in CBC mode.

-

aes128_gcm

Specifies the AES128 encryption algorithm in GCM mode.

-

aes256_gcm

Specifies the AES256 encryption algorithm in GCM mode.

-

aes192_ctr

Specifies the AES192 encryption algorithm in CTR mode.

-

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ssh-server write

Usage Guidelines

Usage Scenario

To configure encryption algorithms on an SSH server, run the ssh server cipher command. The SSH client and server negotiate encryption algorithms for the packets exchanged between them. During negotiation, the client sends the specified encryption algorithms to the server. After comparing the received encryption algorithms with the local ones, the server selects the first matching encryption algorithm received for packet transmission. If no matching encryption algorithm is found, the negotiation fails.

Precautions

  • To ensure high security, you can use the encryption algorithms such as: aes128_ctr, aes256_ctr, aes192_ctr, aes128_gcm, aes256_gcm.
  • This command takes effect for both IPv4 and IPv6 SSH clients.

Example

# Configure the encryption algorithms in aes256_ctr mode.
<HUAWEI> system-view
[~HUAWEI] ssh server cipher aes256_ctr
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >