Synchronize computer date over https (when NTP is blocked).

31 views
Skip to first unread message

Dilawar Singh

unread,
Nov 17, 2017, 10:46:30 PM11/17/17
to Web and Coding Club IIT Bombay

If your IT admin has blocked ports which can talk to NTP server, you can use the following trick to update your date using http/https. Make sure wget is honoring the proxy.
May be a curl solution would be better.

sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"

Reply all
Reply to author
Forward
0 new messages