[ntp:questions] Re: no key, why

Steve Kostecke kostecke at ntp.isc.org
Thu Dec 8 19:05:49 UTC 2005


On 2005-12-07, vrkid0 at gmail.com <vrkid0 at gmail.com> wrote:

> When I run ntpq -p I get the following line in the ouput:
> 172.16.1.255    .NKEY.  16 u    -   16    0    0.000 0.000 4000.00
> even though the ntp.keys file does have the appropriate key defined.

See http://www.eecis.udel.edu/~mills/ntp/html/debug.html

> Here are the relevant lines from ntp.conf:
>
> 	broadcast 172.16.1.255 key 1
>
> and ntp.keys
>
>	1 M SOMEtext

You have to tell ntpd where to find the keys and which keys to trust:

	keys    /etc/ntp.keys
	trustedkey 1
	requestkey 1

You may, or may not, need:

	controlkey 1

-- 
Steve Kostecke <kostecke at ntp.isc.org>
NTP Public Services Project - http://ntp.isc.org/>




More information about the questions mailing list