The ssh server hmac command configures HMAC authentication algorithms on an SSH server.
The undo ssh server hmac command restores the default HMAC authentication algorithms on the SSH server.
By default, the SSH server supports these HMAC authentication algorithms: SHA2_512 and SHA2_256.
Parameter | Description | Value |
---|---|---|
md5 |
Specifies an HMAC MD5 authentication algorithm. |
- |
md5_96 |
Specifies an HMAC MD5_96 authentication algorithm. |
- |
sha1 |
Specifies an HMAC SHA1 authentication algorithm. |
- |
sha1_96 |
Specifies an HMAC SHA1_96 authentication algorithm. |
- |
sha2_256 |
Specifies an HMAC SHA2_256 authentication algorithm. This algorithm is recommended. |
- |
sha2_256_96 |
Specifies an HMAC SHA2_256_96 authentication algorithm. |
- |
sha2_512 |
Specifies an HMAC SHA2_512 authentication algorithm. |
- |
Usage Scenario
To configure HMAC authentication algorithms on an SSH server, run the ssh server hmac command. The SSH client and server negotiate authentication algorithms for the packets exchanged between them. During negotiation, the client sends its authentication algorithms to the server. After comparing the received authentication algorithms with the local ones on the server, the server selects the first matching authentication algorithm received for packet transmission. If no matching authentication algorithm is found, the negotiation fails.
Precautions