For GitHub switch to the more modern passkey approach
https://docs.github.com/en/authentication/authenticating-with-a-passkey/signing-in-with-a-passkey
For command line utilities, use ssh keys:
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh
Or personal access tokens: