S300, S500, S2700, S5700, and S6700 V200R022C10 Command Reference

ssh server cipher

ssh server cipher

Function

The ssh server cipher command configures an encryption algorithm list for an SSH server.

The undo ssh server cipher command restores the default encryption algorithm list of an SSH server.

By default, an SSH server supports all encryption algorithms.

Format

ssh server cipher { des_cbc | 3des_cbc | aes128_cbc | aes256_cbc } *

undo ssh server cipher

Parameters

Parameter

Description

Value

des_cbc

Specifies the CBC DES encryption algorithm.

-

3des_cbc

Specifies the CBC 3DES encryption algorithm.

-

aes128_cbc

Specifies the CBC AES128 encryption algorithm.

-

aes256_cbc

Specifies the CBC AES256 encryption algorithm.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

An SSH server and a client need to negotiate an encryption algorithm for the packets exchanged between them. You can run the ssh server cipher command to configure an encryption algorithm list for the SSH server. After the SSH server receives a packet from the client, the server matches the encryption algorithm list of the client against its local list and selects the first matched encryption algorithm. If no matched encryption algorithms, the negotiation fails.

Example

# Configure CBC encryption algorithms for an SSH server.

<HUAWEI> system-view
[HUAWEI] ssh server cipher aes256_cbc aes128_cbc
Translation
Favorite
Download
Update Date:2025-05-27
Document ID:EDOC1100325914
Views:831232
Downloads:918
Average rating:0.0Points

Digital Signature File

digtal sigature tool