ssh server secure-algorithms cipher
Format
ssh server secure-algorithms cipher { 3des | aes128 | aes256_cbc | aes128_ctr | aes256_ctr } *
ssh server secure-algorithms cipher
Parameters
Parameter | Description | Value |
---|---|---|
3des | Specifies the CBC 3DES encryption algorithm. | - |
aes128 | Specifies the CBC AES128 encryption algorithm. | - |
aes256_cbc | Specifies the CBC AES256 encryption algorithm. | - |
aes128_ctr | Specifies the CTR AES128 encryption algorithm. | - |
aes256_ctr | Specifies the CTR AES256 encryption algorithm. | - |
Usage Guidelines
Usage Scenario
An SSH server and a client need to negotiate an encryption algorithm for the packets exchanged between them. You can run the ssh server secure-algorithms cipher command to configure an encryption algorithm list for the SSH server. After the list is configured, the server matches the encryption algorithm list of a client against the local list after receiving a packet from the client and selects the first encryption algorithm that matches the local list. If no encryption algorithms in the list of the client match the local list, the negotiation fails.
Precautions
aes256_ctr provides the highest security, followed by aes128_ctr, aes256_cbc, aes128, and 3des in order.
3des provides weak security. Therefore, it is not recommended in the encryption algorithm list.