Updated on 2026-07-30 GMT+08:00

Enabling or Disabling an Insecure Algorithm

Scenarios

You can disable an insecure algorithm in your bastion host system to enhance security. If an insecure algorithm is disabled, the bastion host cannot use it (as shown in Table 1).

By default, insecure algorithms are disabled on a bastion host. However, you may need to enable insecure algorithms in some special scenarios, for example:

  • Interconnection with third-party systems: If your bastion host needs to interconnect with third-party systems or old devices that use insecure algorithms, insecure algorithms must be enabled to ensure normal service transfer.
  • Compatibility with old devices: If you need to manage systems or devices that use insecure algorithms through a bastion host, insecure algorithms must be enabled to ensure backward compatibility and continuity of O&M management.
  • Smooth transition: During the transition phase of cryptographic algorithm upgrade and reconstruction, some old systems may not support secure algorithms. In this case, insecure algorithms must be temporarily enabled to ensure smooth service migration.

Precautions

Insecure algorithms have security risks. You are advised to disable these algorithms in a timely manner after they are no longer used and avoid entering sensitive information while they remain enabled.

Prerequisites

The role you belong to has the management permission for the System module. For details about how to check the permissions of each role, see Role.

Enabling or Disabling an Insecure Algorithm

  1. Log in to your bastion host system.
  2. In the navigation pane on the left, choose System > System Config > Security.
  3. On the right of the Algorithm Config area, click Edit.

    Figure 1 Configuring algorithms

  4. After enabling or disabling an insecure algorithm, click OK.

    Figure 2 Enabling an insecure algorithm

Insecure Algorithms

Table 1 lists the insecure algorithms that you may need to enable.

Table 1 Insecure algorithms

Kex

Hostkey

Cipher

MAC

  • diffie-hellman-group-exchange-sha1
  • diffie-hellman-group14-sha1
  • diffie-hellman-group1-sha1
  • ssh-rsa
  • ssh-dss
  • ssh-rsa-cert-v01@openssh.com
  • ssh-dss-cert-v01@openssh.com
  • aes128-cbc
  • aes192-cbc
  • aes256-cbc
  • rijndael-cbc@lysator.liu.se
  • blowfish-cbc
  • blowfish-ctr
  • cast128-cbc
  • cast128-ctr
  • idea-cbc
  • idea-ctr
  • serpent128-cbc
  • serpent192-cbc
  • serpent256-cbc
  • 3des-cbc
  • 3des-ctr
  • twofish128-cbc
  • twofish192-cbc
  • twofish256-cbc
  • twofish-cbc
  • arcfour
  • arcfour128
  • arcfour256
  • hmac-sha1-96
  • hmac-sha1-96@openssh.com
  • hmac-md5
  • hmac-md5-etm@openssh.com
  • hmac-md5-96
  • hmac-md5-96-etm@openssh.com