Py学习  »  Git

cPanel不会从GitHub remote更新

shahriar • 3 年前 • 1401 次点击  

我有一个 私有的 repo在GitHub上称为“ropoz”(一个随机名称),并已将其克隆到我的服务器上。当我使用终端(命令行)时,一切正常:

$ git fetch
Enter passphrase for key...
...

我可以拉,拿。。。它只需要我创建的SSH密钥的密码,这不是什么大问题。

问题是当我使用cPanel git接口从远程更新repo时:它说 Information: The “ropoz test” repository is up-to-date. 但事实并非如此!它无法检测回购协议的变化,我也不知道为什么。

enter image description here

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/132776
 
1401 次点击  
文章 [ 1 ]  |  最新文章 3 年前
VonC
Reply   •   1 楼
VonC    3 年前

您可以考虑使用无需密码的SSH密钥,仅用于CSEPK。
毕竟,这就是 cPanel documentation 推荐。

如果没有,请检查 adding your key to an ssh-agent 不必输入您的密码短语就足够了,无论是从CLI还是从cPanel。
然而 this 2021 article 从…起 Abdulhaqq Sule 确认:

cPanel Git版本控制与使用密码短语的密钥不兼容。