[ntp:questions] Generating keys for ntpdc control

Steve Kostecke kostecke at ntp.org
Fri Jul 4 00:26:28 UTC 2008


On 2008-07-03, Bob <bobsjunkmail at bellsouth.net> wrote:

> "Steve Kostecke" <kostecke at ntp.org> wrote
>
> [---=| Quote block shrinked by t-prot: 66 lines snipped |=---]

[snip]

> Still not working...  I did restart ntpd after creating the files...
>
> C:\PROGRA~1\NTP\etc>type ntp.keys
> 1 M a_password
> 2 M another_password
> 5 M is_right_out
> 42 M themeaningoflife
> 255 M yet_another_password

OK

> ***> ntp.conf contains:
>
> #--# authentication section #--#
> keys "C:\Program Files\NTP\etc\ntp.keys"

I don't use Windows so someone else should comment here, but are spaces
allowed in the filename? Perhaps C:\PROGRA~1\NTP\etc\ntp.keys might be
better.

> enable auth
> trustedkey 1 2 42 255
> requestkey 1 2 255
> controlkey 42

There is some debate as to whether or not controlkey was fully
implemented. Have you tried using one of the key numbers on the
requestkey line?

> #--# end of authentication section #--#
>
> ***> Yet, I get Permission denied

Are there any restrict lines that apply to the host you're running ntpdc
on?
>
> C:\PROGRA~1\NTP\etc>ntpdc
> ntpdc> restri 64.198.211.64 255.255.255.255 noserve
> Keyid: 42
> ***Permission denied    <**** I entered "themeaningoflife" here

It should have looked like:

ntpdc> restrict 192.168.3.3 255.255.255.255 noserve
Keyid: 678
MD5 Password:
***Permission denied
ntpdc>

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




More information about the questions mailing list