Skip to content

Instantly share code, notes, and snippets.

@biiont
Created October 1, 2015 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biiont/7905d8d252f2f0e7ca66 to your computer and use it in GitHub Desktop.
Save biiont/7905d8d252f2f0e7ca66 to your computer and use it in GitHub Desktop.
Sync local time to remote host over ssh
#!/bin/sh
# Sync local date to remote host over ssh
ssh remote.host.net sudo date $(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