wit*_*rin 10 git ssh phabricator
我正在尝试为Phabricator配置SSH以使git运行.我已经按照这个手册,但是当我打电话时,echo {} | ssh git@phabricator.mydomain.com conduit conduit.ping我总是得到一个空的结果或Permission denied (publickey,keyboard-interactive)..
/etc/ssh-phabricator/sshd_config:
AuthorizedKeysCommand /usr/libexec/ssh-phabricator-hook
AuthorizedKeysCommandUser git
Port 22
Protocol 2
PermitRootLogin no
AllowAgentForwarding no
AllowTcpForwarding no
PrintMotd no
PrintLastLog no
PasswordAuthentication no
AuthorizedKeysFile none
Run Code Online (Sandbox Code Playgroud)
/etc/passwd:
phd:x:999:999::/var/tmp/phd:/bin/false
git:x:1005:1005::/home/git:/bin/bash
Run Code Online (Sandbox Code Playgroud)
/etc/shadow:
phd:!:16135::::::
git:NP:16135:0:99999:7:::
Run Code Online (Sandbox Code Playgroud)
/etc/sudoers:
git ALL=(phd) SETENV: NOPASSWD: /usr/bin/git-upload-pack, /usr/bin/git-receive-pack, /bin/false
Run Code Online (Sandbox Code Playgroud)
~/.ssh/config:
Host phabricator.mydomain.com
HostName phabricator.mydomain.com
Port 22
IdentityFile /c/Users/.../.ssh/id_rsa_phabricator
PreferredAuthentications publickey
User git
Run Code Online (Sandbox Code Playgroud)
UPDATE
我的问题的原因是:
git用户有一个shell.您的 ssh 挂钩工作正常 - 首先,您应该确保 git ssh 用户能够 ssh 到正常的 ssh 守护进程 - 这将确保您可以使用该用户登录。
正如评论中所述,您很可能有一个错误的主目录或错误的 shell。
如果所有这些工作正常,请确保您已将 ssh 密钥上传到您的个人资料中,并且您正在使用此密钥进行连接。
| 归档时间: |
|
| 查看次数: |
15061 次 |
| 最近记录: |