Hi Thomas,
> After you've enabled 2FA, you must use a personal access token or SSH key instead of your password when accessing GitHub on the command line.
> Authenticating on the command line using HTTPS> After you've enabled 2FA, you must create a personal access token to use as a password when authenticating to GitHub on the command line using HTTPS URLs.
>When prompted for a username and password on the command line, use your GitHub username and personal access token. The command line prompt won't specify that you should enter your personal access token when it asks for your password.
Hello Thomas,
> Additionally I don't know, if the 2F authentication does prohibit
> a single password login. On website github I can login without
> problems. Pushing to my existing repository with TortoiseGit
> the error message says, my password would be wrong. This
> cannot be because of login with it on the website is possible.
Again, for username/password login you need to use a personal access token:
*
<https://docs.github.com/en/github/authenticating-to-github/accessing-github-using-two-factor-authentication>
*
<https://docs.github.com/en/github/using-git/why-is-git-always-asking-for-my-password>
--
Sven Strickroth