I went to the problem directly and checked it on Baidu online. At first it was because I didn’t add the ssh private key, but later I added it and still got the error. The error message is the same as the first time. It's different, it doesn't seem to be a permissions issue, stack I have seen something similar on Overflow, but the results are not the same according to the steps, but I still can’t find the problem. I hope friends who have encountered it can help answer the questions~
Thank you~
After searching online, I finally found out the reason. . . I despised myself. .
When copying the private key, it is natural to ignore the head and tail. . . ?
It should still be a problem with the public key. You need to add the public key used by the Jenkins machine to your git remote repository. You can run the same command on the command line of your Jenkins machine to verify.