current position:Home>In the idea, the code is pushed to gitee_github through ssh to report an error

In the idea, the code is pushed to gitee_github through ssh to report an error

2022-11-24 22:01:44share a drink no

Description of the problem

I was able to push the code normally yesterday, but today the push reported the following error Failed with error: ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type. Could not read from remote repository. Error: You are using RSA keys with SHA-1, which is no longer allowed.Please use a new client or a different key type.Unable to read data from remote repository.Executing a connection test works again.

C:\Users\Administrator>ssh -T [email protected] [36;01mzjqSoCool[0m! You've [32msuccessfully[0m authenticated, but GITEE.COM does not provide shell access.

Solution

See a lot of query data and say to execute the following command

git pull origin master --allow-unrelated-histories 

The meaning of this command is [Allow irrelevant historical submissions and force merging]. It seems that the meaning of the command is not quite right with mine, but let’s try it and continue to submit after executing the above command in the corresponding project, or report Failed with error: ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type. Could not read from remote repository.Well, keep trying, guess it should be the reason for the ssh key.Delete the local **.ssh** and regenerate a new replacement. For details, see my article github or gitee configure ssh password-free login.It can be regenerated, but the specific reason why it can suddenly fail is still unknown.If the above operation still fails, it is recommended to use another algorithm to generate .ssh, for example: ssh-keygen -t ed25519 -C "[email protected]".

copyright notice
author[share a drink no],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/328/202211242155083559.html

Random recommended