Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
How do I change a Linux web server's date through SSH?
Use the following syntax to set new data and time:
With the date command. See man date for more information.
Another option is to use the ntpdate command to sync it from a public NTP server, then start up ntpd to keep it in sync.
Required, but never shown