8/15/2023 0 Comments Git command line loginSetup instructions vary based on your computer's operating system. For more information about Git credential helpers, see Avoiding repetition in the Pro Git book. Git Credential Manager is a secure Git credential helper that runs on Windows, macOS, and Linux. Authenticating on the command line using Git Credential Manager To find out if your authentication method is affected, see the following sections. Using two-factor authentication with the command lineĮnabling 2FA may affect authentication to GitHub through the command line. For more information, see " Keeping your account and data secure." Rejecting the sign in attempt will prevent the authentication from finishing.Upon approving the login attempt using GitHub Mobile, your browser will complete the sign in attempt automatically. ![]() Note: This prompt may require you to enter a two-digit number displayed within the browser you are signing in to. Opening the push notification or opening the GitHub Mobile app will display a prompt, asking you to approve or reject this sign in attempt. GitHub will send you a push notification to verify your sign in attempt. Sign in to GitHub with your browser, using your username and password. If you have installed and signed in to GitHub Mobile, you may choose to authenticate with GitHub Mobile for two-factor authentication. If you set up two-factor authentication via text messages, GitHub will send you a text message with your authentication code. Depending on your security key configuration, you may type a PIN, complete a biometric prompt, or use a physical security key. Select the appropriate option in the prompt.To trigger the security key prompt from your operating system, select "Use security key".If you use a physical security key, ensure it's connected to your device.Using your username and password, sign in to GitHub through your browser.If you've set up a security key on your account, and your browser supports security keys, you can use it to complete your sign in. ![]() For more information, see " Recovering your account if you lose your 2FA credentials." Using a security key Many TOTP apps support the secure backup of your authentication codes in the cloud and can be restored if you lose access to your device. If you delete your authenticator application after configuring two-factor authentication, you'll need to provide your recovery code to get access to your account. You should refer to your application's documentation for specific instructions. In most cases, just launching the application will generate a new code. If you chose to set up two-factor authentication using a TOTP application on your smartphone, you can generate an authentication code for GitHub at any time. For more information on 2FA for sensitive actions, see " Sudo mode." Generating a code through a TOTP application GitHub will only ask you to provide your 2FA authentication code again if you've logged out, are using a new device, are performing a sensitive action, or your session expires. For more information, see " About authentication to GitHub." Performing 2FA when signing in to the websiteĪfter you sign in to GitHub using your password, you'll need to provide an authentication code, tap a notification in GitHub Mobile, or use a security key to perform 2FA. If you access GitHub using other methods, such as the API or the command line, you'll authenticate using a token, application, or SSH key. For more information, see " Configuring two-factor authentication." If you cannot perform 2FA to pass the 28th day checkup, use the provided shortcut to reconfigure your 2FA settings and retain access to. ![]() If you don't authenticate within 28 days, you'll be asked to perform 2FA inside one of your existing sessions. You can exit the check up period by successfully performing 2FA within 28 days. When you first configure 2FA, your account will enter a check up period for 28 days to ensure your account's 2FA methods are setup correctly. With two-factor authentication (2FA) enabled, you'll need to use a second factor when accessing GitHub through your browser.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |