You may got this error, if your computer's clock is out of sync. You are using valid credentials, but your clock may be out of sync. On Linux or macOS, run date to check the time.
If your system clock is not correct within a few minutes, use ntpd to sync it.
$ sudo service ntpd stop
$ sudo ntpdate time.nist.gov
$ sudo service ntpd start
Hope this will solve your error.