MAC OS crontab 执行git提交报错 Permission denied

MAC OS crontab 执行git提交报错无权限

.sh 文件可以在命令行直接提交。但是配置 crontab 自动化脚本后执行报错:

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.
阅读 2.8k
1 个回答

我记得应该生产一个公钥 key,发送给 git 上。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题