The ssh client hmac command configures HMAC authentication algorithms on an SSH client.
The undo ssh client hmac command restores the default HMAC authentication algorithms on an SSH client.
By default, the SSH client supports these HMAC authentication algorithms: SHA2_51 and SHA2_256.
Parameter | Description | Value |
---|---|---|
md5 |
Specifies an HMAC MD5 authentication algorithm. |
- |
md5_96 |
Specifies an HMAC MD5_96 algorithm. |
- |
sha1 |
Specifies an HMAC SHA1 algorithm. |
- |
sha1_96 |
Specifies an HMAC SHA1_96 algorithm. |
- |
sha2_256 |
Specifies an HMAC SHA1 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 client, run the ssh client 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 local ones, the server selects the first matching authentication algorithm received for packet transmission. If no matching authentication algorithm is found, the negotiation fails.
Precautions