我正在尝试创建托管远程git存储库的应用程序。我想要做的是允许用户通过SSH克隆存储库,我使用supervisord为我的应用程序和sshd服务,但是当我试图克隆存储库时,我得到:
$ git clone git@address:/repositories/some-repo
Cloning into 'some-repo'...
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.在监督日志中我可以看到:
[date] INFO reaped unknown pid [PID]所以在我看来,这只是监督谁正在杀死所有不知道的PID。我确信我已经为我的存储库设置了正确的访问权限,并且我的密钥被添加到authorized_keys文件中。我目前的监督配置是:
[supervisord]
logfile = /tmp/supervisord.log
directory = /tmp
childlogdir = /tmp
[program:app-sshd]
command=/usr/sbin/sshd -D
[program:app-uwsgi]
command = /usr/local/bin/uwsgi --ini /my/path/uwsgi.ini
stopsignal=INT
[program:app-nginx]
command = /usr/sbin/nginx是否有任何方法允许监控程序中的git连接,或者我是否需要用虚拟机替换我的码头容器来继续这个项目?
发布于 2016-11-21 21:49:27
问题是我的用户将shell设置为/bin/false,然后他在登录后就被注销了。将其更改为/bin/bash解决了这个问题。
https://stackoverflow.com/questions/40715279
复制相似问题