【问题标题】:Centos server install Git and Gitolite After, Unable to connect via SSH [closed]Centos 服务器安装 Git 和 Gitolite 后,无法通过 SSH 连接 [关闭]
【发布时间】:2015-07-21 15:24:56
【问题描述】:
sh-3.2# ssh 115.2x.x.x
PTY allocation request failed on channel 0
bash: /root/bin/gitolite-shell: No such file or directory
Connection to 115.2x.x.x closed.

“/etc/passwd”在服务器上:

root:x:0:0:root:/root:/bin/bash

【问题讨论】:

    标签: git ssh centos gitolite


    【解决方案1】:

    如果可能的话,gitolite 是使用root 帐户安装的。
    gitolite doc 提到:

    当您在 ssh 模式下安装 gitolite 时,您会在 Unix 系统上选择一个特定用户作为“主机用户”。
    这是您的用户将克隆的存储库 URL 中的用户名,例如ssh://git@server/repo,或更简单的形式git@server:repo

    即使在local installation (directly on the server) 中,该设置也应该作为“git”帐户完成,而不是 root。

    【讨论】:

    • 这个问题搞定。移除 git 用户帐号,重新创建 git ,使用安装 git 登录系统。
    猜你喜欢
    • 2019-10-19
    • 1970-01-01
    • 1970-01-01
    • 2013-04-09
    • 2017-07-17
    • 1970-01-01
    • 1970-01-01
    • 2018-08-14
    • 2012-10-21
    相关资源
    最近更新 更多