Skip to content

Instantly share code, notes, and snippets.

@markcaudill
Created April 27, 2011 17:49
Show Gist options
  • Save markcaudill/944778 to your computer and use it in GitHub Desktop.
Save markcaudill/944778 to your computer and use it in GitHub Desktop.
A dirty way to update your system time via SSH.
# Sync the time ninja style
0 0 * * * /bin/date `ssh -i /home/username/.ssh/id_rsa -p 443 username@remote.hostname.tld "date '+%m%d%H%M%Y.%S'"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment