Search code examples
gitgithubtwo-factor-authenticationmulti-factor-authentication

remote: Invalid username or password. fatal: Authentication failed, after two-factor authentication enabled


After having enabled two-factor authentication I get the following error when attempting git clone, git fetch, etc:

remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/smartsendio/pickup-map.git/'

Solution

  • You can not access using password after enable Two - factor authentication

    You need to create Personal access tokens now use access token instead of password enter image description here

    enter image description here

    enter image description here