【发布时间】:2019-12-07 21:39:50
【问题描述】:
我创建了一个使用https://github.com/steveukx/git-js 包的nodejs 服务。
使用node index.js 启动我的服务时;一切正常。
当使用 PM2 (https://github.com/Unitech/pm2) 启动我的服务时,我总是遇到以下问题
57| | Permission denied (publickey).
57| | fatal: Could not read from remote repository.
57| | Please make sure you have the correct access rights
57| | and the repository exists.
信息;我已经建立了从我的 VPS 到 GITHUB 的 SSH 连接。 我的 ssh 密钥在 ~/.ssh/
我假设 PM2 无法正确访问我的目录,但我仍然不知道如何配置它。
任何帮助将不胜感激; 问候, 亚历克斯
【问题讨论】:
-
请提供任何线索。