Closed dom-guibegotti closed 5 years ago
After creating the issue I looked more closely to the device arn and changed the 'user' tag to 'mfa' and it worked. Sorry for the inconvenience.
If anyone else encounters this problem even without typos, it's probably because the server and your device are out of sync for whatever reason. I fixed it by repeatedly attempting to sign in to the web AWS Management Console. After two unsuccessful MFA codes, AWS will redirect you to a page where you type in two consecutive MFA codes on the same page. Then you should be able to do it on the command line with aws-mfa
too.
This is the second time I installed and using aws-mfa. For the first all worked great, now in this new setup I can't set my device. All the time I run:
And then type the token I get:
The device arn is okay, long term keys are okay, instalation is okay too. What's the problem here?