Created
June 30, 2015 12:54
-
-
Save alepez/5d0456c3f8afc62bebef to your computer and use it in GitHub Desktop.
set datetime taken from remote via ssh (when ntp isn't available)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo date -s "$( ssh user@host 'date "+%Y-%m-%d %H:%M:%S"' )"; sudo hwclock --systohc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment