Permission denied (publickey) error occurs in git

Check the configuration name and whether the configuration name is correct

git config --global user.name 您的名字
git config --global user.name

Configure the mailbox and check whether the mailbox configuration is correct

git config --global user.email 您的邮箱地址
git config --global user.email

Enter the command ssh-keygen -t rsa to generate sshKEY, copy all the contents in the id_rsa.pub file under the local ./ssh folder, and add the SSH public key on Alibaba Cloud

Guess you like

Origin blog.csdn.net/Just_do_it_HZF/article/details/126035690