MAC OS crontab executes git to submit error Permission denied

MAC OS crontab does not have permission to execute git submission error report

The

.sh file can be submitted directly on the command line. But execute the error after configuring the crontab automation script:

git@gitee.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Apr.09,2021

I remember that I should produce a public key key, and send it to git.

Menu