ntpq: read: Connection refused

Posted on 2008-11-10
Last Modified: 2013-12-16
When i run the command ntpq -p
I get this error message.
ntpq: read: Connection refused
does anybody know what it means in relation to ntp

my ntp.conf :
driftfile /var/lib/ntp/drift/ntp.drift

logfile /var/log/ntp



Question by:AbdellahT
    LVL 40

    Assisted Solution

    do you have a firewall in the network? connection refused could due to

    - no server listening on the remote system
    - wrong remote ip address
    - firewall denying connections

    LVL 29

    Accepted Solution

    There could be a number of possibilities...

    1) Make sure iptables is not blocking the outbound connection (i.e. 'iptables -L')
    2) Make sure ntpd or xntpd is up and running on the server (i.e. 'ps -aef | grep ntp')
    3) Is your gateway and DNS seend correctly? (i.e. 'netstat -r', 'cat /etc/resolv.conf')


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now