How to setup NTP via command line over SSH

network time setup NTP

How to setup NTP via command line over SSH connection to a server:

Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks. In operation since before 1985, N.T.P is one of the oldest Internet protocols in current use.

Procedure on CentOS

Login as the root user

Type the following command to install N.T.P

# yum install ntp

Turn on service on boot:

# chkconfig ntpd on

Synchronize the system cloc

k with 0.pool.ntp.org server:

# ntpdate pool.ntp.org

Start the NTP:

# /etc/init.d/ntpd start

You can actually create these settings on our platform in few minutes utilizing our PCS (Private Cloud Solution) which allows you to have VPSie(s) on a private network – NAT – Port forward – traffic control for inbound and outbound – multiple gateway IPs which you could use for the load-balancing and failover.

another good list of servers

server nist1-dc.WiTime.net iburst
server ntp0.mcs.anl.gov
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org

                             Try us free for one full month today!

Related Articles