How to setup NTP via command line over SSH

How to setup NTP via ssh

Procedure on CentOS

Login as the root user

Type the following command to install ntp
# yum install ntp

Turn on service on boot:
# chkconfig ntpd on
Synchronize the system cloc

k with server:

# ntpdate

Start the NTP:

# /etc/init.d/ntpd start


Leave A Comment?

six + 7 =