/ tech

How Do I Sync a Linux Computer Time to a Windows Computer without NTP?

First... you need to run sshd on the Windows computer... which is a process in itself... but assuming you have this setup. Just do this:

ssh yourpc_ip date;date

You'll see this output:

Wed Aug 16 11:38:06 CDT 2017
Wed Aug 16 11:38:07 CDT 2017

Do the math, whatever the difference is, just run date to adjust on Linux:

sudo date -s "-1 seconds"

All done.

How Do I Sync a Linux Computer Time to a Windows Computer without NTP?
Share this