Specifying MAC algorithms for SSH2

  1. Enter system view.

    system-view

  2. Specify MAC algorithms for SSH2.

    In non-FIPS mode:

    ssh2 algorithm mac { md5 | md5-96 | sha1 | sha1-96 | sha2-256 | sha2-512 } *

    By default, SSH2 uses the sha2-256, sha2-512, sha1, md5, sha1-96, and md5-96 MAC algorithms in descending order of priority for algorithm negotiation.

    In FIPS mode:

    ssh2 algorithm mac { sha1 | sha1-96 | sha2-256 | sha2-512 } *

    By default, SSH2 uses the sha2-256, sha2-512, sha1, and sha1-96 MAC algorithms in descending order of priority for algorithm negotiation.