[ntp:questions] ntpq authentication problem

catherine.wei1989 at gmail.com catherine.wei1989 at gmail.com
Mon Mar 2 07:44:46 UTC 2015


On Monday, March 2, 2015 at 1:35:40 AM UTC+8, William Unruh wrote:
> On 2015-03-01, catherine.wei1989 at gmail.com <catherine.wei1989 at gmail.com> wrote:
> > On Saturday, February 28, 2015 at 4:25:02 PM UTC+8, Jan Ceuleers wrote:
> >> On 28/02/15 08:48, catherine.wei1989 at gmail.com wrote:
> >> > I still have a doubt: the key file is generated on my PC (as the first ntp server) , when I copied it to the box(client), and I changed the box's ntp server to a second server "3.cn.pool.ntp.org" or some other ntp servers. The authentication still passes. Why is that?
> >> 
> >> ntpq talks directly to the ntpd process over the network. If you run
> >> ntpq without specifying where the server is located it talks to ntpd on
> >> localhost. Which time sources ntpd uses is immaterial.
> >
> >
> > Hi, Jan
> > I specified the ntp server "3.cn.pool.ntp.org" in the /etc/ntp.conf file. In this case, I run ntpq :config ...   , does it still talk to ntpd on localhost ? and time sources is still "3.cn.pool.ntp.org" ?
> 
> 3.cn.pool.npt.org is not an ntp time source. It is a dummy name, which
> is filled in by pool.ntp.org. For example every time you ping that a
> different address comes up
> 
> ping -c 1 3.cn.pool.ntp.org
> PING 3.cn.pool.ntp.org (202.112.10.36) 56(84) bytes of data.
> ping -c 1 3.cn.pool.ntp.org
> PING 3.cn.pool.ntp.org (202.112.31.197) 56(84) bytes of data.
> ping -c 1 3.cn.pool.ntp.org
> PING 3.cn.pool.ntp.org (202.118.1.81) 56(84) bytes of data.
> 
> Thus there is no time source "3.cn.pool.ntp.org" ( or to be exact, there
> are many)

Hi,William
I now understand your points, you're right. The ntpq authentication has nothing to do with remote ntp server, it talks to ntpd directly. Thank you so much.



More information about the questions mailing list