The ntp-service authentication-keyid command sets NTP authentication key.
The undo ntp-service authentication-keyid command removes NTP authentication key.
By default, no authentication key is set.
ntp-service authentication-keyid key-id authentication-mode { md5 | hmac-sha256 } [ cipher ] password-key
undo ntp-service authentication-keyid key-id
| Parameter | Description | Value |
|---|---|---|
| key-id | Specifies the key number. | It is an integer ranging from 1 to 4294967295. |
| authentication-mode md5 | Adopts Message-Digest Algorithm 5 (MD5) authentication mode. | - |
| authentication-mode hmac-sha256 | Adopts Secure Hash Algorithm 256 (SHA256) authentication
mode. NOTE:
To improve security, you are advised to use the SHA256
algorithm instead of the MD5 algorithm. |
- |
| cipher | Indicates the cipher authentication. You can type in the plain text or the cipher text, and it is displayed as the cipher text when the configuration file is viewed. |
- |
| password-key | Indicates that the authentication key, which can be in plain text or in cipher text format. | The keyword is a string of case sensitive characters, spaces supported.
NOTE:
If a password contains a space, the password must be placed into a pair of double quotation marks. Only one pair of double quotation marks can be used for each user name. To have a secure password, it is recommended that the password-key should be minimum of 8 characters and contain at least two combination
of the following:
|