Configure NTP server and port for systemd-timesyncd

109 Views Asked by At

I am trying to configure the NTP server and port for systemd-timesyncd in /etc/systemd/timesyncd.conf under [TIME] section with NTP value.

NTP=time.google.com:123

And then I restart systemd-timesyncd but it doesn't sync the time. When I remove the port from the config file, it does. What can be problem here?

1

There are 1 best solutions below

0
Kuldip_036 On BEST ANSWER

Keyur here is the perfecr answer for your query.

Don't use semicolon in-between URL and PORT, just give single space.

NTP=time.google.com 123