Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Jules <19994093+jules-p@users.noreply.github.com>
4.7 KiB
title, intro, redirect_from, versions, topics, shortTitle
| title | intro | redirect_from | versions | topics | shortTitle | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Updating your GitHub access credentials | {% data variables.product.github %} credentials include your password, access tokens, SSH keys, and application API tokens used to communicate with {% data variables.product.github %}. You can reset all of these access credentials yourself. |
|
|
|
Update access credentials |
{% ifversion ghec %}
[!NOTE] {% data reusables.enterprise-data-residency.access-domain %}
{% endif %}
Requesting a new password
{% data reusables.accounts.request-password-reset-link %}
-
If you have enabled two-factor authentication, you will be prompted for your 2FA credentials:
- If you have added a passkey or a security key to your account, click Use passkey or security key. {% ifversion fpt or ghec %}
- If you have set up {% data variables.product.prodname_mobile %}, you will be sent a push notification to verify your identity. If you didn't receive a notification, click "More options", then Authenticate with {% data variables.product.prodname_mobile %}. {% endif %}
- Alternatively, type your TOTP or SMS authentication code, or one of your recovery codes, and click Verify.
{% ifversion 2fa-recovery-flow %}
Note
If you've lost access to your two-factor authentication credentials and your recovery codes, you can start account recovery request. See AUTOTITLE. {% endif %}
-
In the text field under Password, type a new password. Then, in the text field under Confirm password, type the password again.
-
Click Change password. For help creating a strong password, see AUTOTITLE.
Tip
To avoid losing your password in the future, we suggest using a secure password manager.
Changing an existing password
{% data reusables.repositories.blocked-passwords %}
- Sign in to {% data variables.product.github %}. {% data reusables.user-settings.access_settings %} {% data reusables.user-settings.security %}
- Under "Change password", type your old password, a strong new password, and confirm your new password. For help creating a strong password, see AUTOTITLE.
- Click Update password.
Tip
For greater security, enable two-factor authentication in addition to changing your password. See About two-factor authentication for more details.
Updating your access tokens
See AUTOTITLE for instructions on reviewing and deleting access tokens. To generate new access tokens, see AUTOTITLE.
If you have reset your account password and would also like to trigger a sign-out from the {% data variables.product.prodname_mobile %} app, you can revoke your authorization of the "GitHub iOS" or "GitHub Android" {% data variables.product.prodname_oauth_app %}. This will sign out all instances of the {% data variables.product.prodname_mobile %} app associated with your account. For additional information, see AUTOTITLE.
Updating your SSH keys
See AUTOTITLE for instructions on reviewing and deleting SSH keys. To generate and add new SSH keys, see AUTOTITLE.
Resetting API tokens
If you have any applications registered with {% data variables.product.github %}, you'll want to reset their OAuth tokens. For more information, see the PATCH /applications/{client_id}/token endpoint in AUTOTITLE.
Preventing unauthorized access
For more tips on securing your account and preventing unauthorized access, see AUTOTITLE.