Phabricator에 SSH를 설정하여 git을 실행하려고합니다. 나는이 manual을 따라 갔지만 echo {} | ssh [email protected] conduit conduit.ping
을 호출하면 항상 빈 결과 또는 Permission denied (publickey,keyboard-interactive).
이 표시됩니다.Phabricator에 대해 SSH로 힘내 구성
/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
/etc/passwd
:
phd:x:999:999::/var/tmp/phd:/bin/false
git:x:1005:1005::/home/git:/bin/bash
/etc/shadow
:
phd:!:16135::::::
git:NP:16135:0:99999:7:::
,
/etc/sudoers
:
git ALL=(phd) SETENV: NOPASSWD: /usr/bin/git-upload-pack, /usr/bin/git-receive-pack, /bin/false
~/.ssh/config
: 내 문제에 대한
이유가 있었다
Host phabricator.mydomain.com
HostName phabricator.mydomain.com
Port 22
IdentityFile /c/Users/.../.ssh/id_rsa_phabricator
PreferredAuthentications publickey
User git
UPDATE :
- 클라이언트에서 SSH 키를 사용하지 않았습니다.
- 나는
git
사용자가 껍질을 가지고 있는지 확인하지 못했습니다.
https://secure.phabricator.com/T4151의 정보 중 일부는 아직 주요 문서로 작성되지 않았지만 유용 할 수 있습니다. 특히,'git' 사용자가'/ etc/shadow'에'/ bin/false'가 아닌'/ bin/sh'와 같은 실제 셸과'NP '가 있는지 확인하십시오. –
감사! 이것은 문서의 일부 여야합니다. – witrin