Troubleshooting

Chrony NTS Client Configuration: Enable Authentication and Check authdata

Aseem Kishore
4 min read

The Back Room Tech is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

Add nts to a chrony server or pool line to enable Network Time Security (NTS) authentication. The source must support NTS, and chronyd must be built with NTS support. Then run chronyc -N authdata to check key establishment. (chrony configuration manual; chrony FAQ, retrieved October 21, 2026.)

What Is Chrony NTS?

The nts option enables NTS authentication for a server or pool source. It doesn’t require a key file shared by the client and server. chronyc authdata shows authentication details for NTP sources. (chrony configuration manual; chronyc manual, retrieved October 21, 2026.)

Prerequisites

  • An existing chrony configuration with a server or pool line you can edit.
  • Chrony 4.0 or later, with chronyd built for NTS support. NTS has been available since version 4.0, but the build still matters. (chrony FAQ; chrony 4.7 configuration manual, retrieved October 21, 2026.)
  • A server or pool that supports NTS. (chrony 4.7 configuration manual, retrieved October 21, 2026.)
  • Access to chronyd messages in the system log. The chrony FAQ points there when key establishment fails. (chrony FAQ, retrieved October 21, 2026.)

Use your setup’s configuration path and service procedure.

Step-by-Step Guide

Step 1: Identify the source you want to authenticate

Find the server or pool line for your source. Check that the source supports NTS. Your chronyd build needs NTS support too. (chrony 4.7 configuration manual, retrieved October 21, 2026.)

A server line has this form. Keep your actual source name:

server your-nts-server.example

Expected result: You’ve found the line to edit. The hostname above is a placeholder.

Step 2: Add nts to the source line

Append nts to that line. For a server source, it looks like this:

server your-nts-server.example nts

For an existing pool source, add the same option:

pool your-nts-pool.example nts

Replace the placeholder with your NTS-capable source. Save the file and apply it using your setup’s normal procedure. The option works on either source type and needs no shared key file. (chrony configuration manual, retrieved October 21, 2026.)

Expected result: The source line ends in nts. That confirms the edit. Check authentication after chronyd is using the configuration.

Step 3: Check authentication data

Run the command from chrony’s NTS FAQ:

chronyc -N authdata

authdata shows authentication details for NTP sources. This FAQ example shows the columns and a successful key establishment pattern. Your names and values will differ. (chronyc manual; chrony FAQ, retrieved October 21, 2026.)

Name/IP address Mode KeyID Type KLen Last Atmp NAK Cook CLen
================================================================
ntp1.example.net NTS 1 15 256 33m 0 0 8 100
ntp2.example.net NTS 1 15 256 33m 0 0 8 100
ntp3.example.net NTS 1 15 256 33m 0 0 8 100

Expected result: Find your source’s row. NTS under Mode means Network Time Security. In the FAQ’s example, KeyID, Type, and KLen are non-zero. If they’re zero, check the system log for chronyd errors. (chronyc manual; chrony FAQ, retrieved October 21, 2026.)

Step 4: Read the NTS fields accurately

Use this field to read the result:

FieldMeaning for an NTS source
TypeThe negotiated authenticated encryption with associated data (AEAD) algorithm identifier.

This definition comes from the chronyc manual (retrieved October 21, 2026).

Configuration

Keep nts on each server or pool line you want to authenticate with NTS. Each source needs NTS support, and so does your chronyd build. Put the option after the source name. (chrony configuration manual; chrony 4.7 configuration manual, retrieved October 21, 2026.)

Tips and Troubleshooting

KeyID, Type, and KLen remain zero

Cause to investigate: Key establishment hasn’t reached the non-zero pattern shown in chrony’s FAQ.

Fix: Check the system log for chronyd errors, as the FAQ recommends. Read those messages before changing the source line again. (chrony FAQ, retrieved October 21, 2026.)

NTS-KE cannot connect

Possible cause: A firewall blocks the client’s connection to the server’s TCP port 4460.

Fix: Check that connection along your network path. The chrony FAQ lists a blocked port as one possible cause of failed NTS key establishment. (chrony FAQ, retrieved October 21, 2026.)

Certificate verification fails

Possible cause: The client’s clock is wrong, so the certificate fails verification.

Fix: Check the client’s clock and the relevant chronyd log message before retrying your normal procedure. The chrony FAQ lists a wrong client clock as another possible cause. (chrony FAQ, retrieved October 21, 2026.)

Wrapping Up

Check your source’s authdata row for NTS mode and non-zero KeyID, Type, and KLen, as shown in chrony’s FAQ. If those values stay at zero, start with the chronyd log before changing NTS settings.