Security News > 2020 > January > How to access your 2FA Docker Hub account from the command line
With 2FA enabled on your Docker Hub account, you'll find you cannot access it with your user password from within the CLI. Jack Wallen shows you how to make this work.
If you've recently added two-factor authentication to your Docker Hub account, you've more than likely run into a situation where you can no longer access the account from the command line using the standard username/password credentials.
So instead of either ignoring 2FA on your Docker Hub account, or disabling it the second you can't gain access from the CLI, let's fix that problem.
The first thing to do is to get your Docker Hub access token.
Congratulations, you now can access your Docker Hub 2FA-enabled account from the command line.