Hi@akhtar,
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.
$ date
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
$ ntpstat
Hope this will solve your error.
Check out this AWS certification training to become the expert!