I submitted the code today, pushed it on GitHub, and this problem popped up.
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
Remote: both Please see lot. Blog / 2020-12-15 -… for more information.
Fatal: Unable to access ‘github.com/zhoulujun/a… ‘: The requested URL returned error: 403
Official explanation: Github blog/ Changelog /2…
As previously announced, starting on August 13, 2021, at 09:00 PST, we will no longer accept account passwords when authenticating Git operations on GitHub.com. Instead, token-based authentication (for example, personal access, OAuth, SSH Key, or GitHub App installation token) will be required for all authenticated Git operations.
Please refer to this blog post for instructions on what you need to do to continue using git operations securely.
Removal
- August 13, 2021, at 09:00 PST
As of August 13, 2021, intellij will no longer be able to submit code using a password. Use personal Access token instead.
This was said late last year, github blog/2020-12-15-…
In July 2020, we announced our intent to require the use of token-based authentication (for example, a personal access, OAuth, or GitHub App installation token) for all authenticated Git operations. Beginning August 13, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com.
Oneself tinkered with a Token, annoying very. Still feel direct SSH way to operate Git (before is the source of SSH, there is no problem).
Configure SSH password-free login on Github
This is about Mac OS operations. Windows can learn from
Viewing the SSH Directory
ls -al ~/.ssh
Copy the code
The Mac OS directory is ~/.ssh. The Windows directory is Users/uestc/.ssh/id_rsa
– If it is matched, it will list:
-
Id_rsa (private key) – this cannot be leaked
-
Id_rsa.pub (public key)
– If not, go to step 2
Create a new SSH KEY
ssh-keygen -t rsa -b 4096 -C "[email protected]"
Copy the code
You will be prompted with a path to save the public and private keys – just press enter (in the default directory)
Then you are prompted for the private key password passphrase – if you do not want to use the private key to log in, the private key password is empty and press Enter
Copy id_rsa.pub to the SSH keys created on Github
Configure well, and remember, you need to use SSH Clone for your project
If the local is an HTTPS source, change the Git repository address
Git changes the remote repository address
There are three ways to do this:
- 1. Modify the command
- git remote origin set-url [url]
- After the first delete
-
git remote rm origin
-
git remote add origin [url]
- Modify the config file directly
- Git folder, find config, edit, and replace the original project address with the new one.
Use the Git Guide – Enough Pointers for daily work
Regarding the github proposal to change the Token situation, the operation is as follows
GitHub token
Open your GitHub home page, click your avatar to find Settings and enter, find Personal Access Tokens in the left directory bar, click Generate New Tokens, and follow the steps to apply. The process is simple. Scopes are recommended there.
After the Token application is successful, copy the Token to the Token column
Operation path:
Just create a new token. I checked all the permissions.
Intellij IDEA Github account verification
Configure Git directory
Open Settings (File–>Settings) –> Enter Git in the search box, press Enter to go to the Git configuration page –> Enter git Path to git executable
Configure a GitHub account password
The first option is to use Password authentication.
My previous employer was like this
Enter your GitHub user name in the Login column –> Enter your GitHub Login Password in the Password column
Now in the new version, clicking on the login password will automatically jump to the login authentication page, in the authentication page click OK (my password is remembered by Chrome). I automatically log in
Select log Width token and just fill in the token
Reference article:
Github configure SSH password-free login blog.csdn.net/qq_38163309…
GIT from dense login artifact SSH KEY configuration, rounding blog.csdn.net/w1532127104…
Intellij IDEA using lot + Git www.cnblogs.com/yysbolg/p/8…
Intellij IDEA development carried out in cooperation with Git and making use www.jianshu.com/p/ea1703adf…
Making generating code token method – the IDEA to pull or push failure need new validation token blog.csdn.net/SR02020/art…
Intellij IDEA development carried out in cooperation with Git and making use www.jianshu.com/p/ea1703adf…