Centos服务器安装Git和Gitolite后,无法通过SSH连接
Centos server install Git and Gitolite After, Unable to connect via SSH
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
如果可能的话,使用 root
帐户安装了 gitolite。
gitolite doc 提到:
When you install gitolite in ssh mode, you pick one specific user on the Unix system to be the "hosting user".
This is the user whose name goes into the repo URLs your users will be cloning, for example ssh://git@server/repo
, or the simpler form git@server:repo
.
即使在 local installation (directly on the server) 中,该设置也应该作为 'git' 帐户而不是根帐户来完成。
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
如果可能的话,使用 root
帐户安装了 gitolite。
gitolite doc 提到:
When you install gitolite in ssh mode, you pick one specific user on the Unix system to be the "hosting user".
This is the user whose name goes into the repo URLs your users will be cloning, for examplessh://git@server/repo
, or the simpler formgit@server:repo
.
即使在 local installation (directly on the server) 中,该设置也应该作为 'git' 帐户而不是根帐户来完成。