Phabricator SHH Config

时间:2016-03-23 04:35:18

标签: linux ssh phabricator

我正在安装phabricator进行代码审查 我按照Diffusion托管存储库指南,我可以添加新的托管存储库 但是当我测试连接时:
echo {} | ssh -p 22 phassh@localhost conduit conduit.ping
我得到了:
Permission denied (publickey,keyboard-interactive).

我使用了ssh的调试模式 sudo /usr/sbin/sshd -d -d -d -f /etc/ssh/sshd_config.phabricator
日志是:

debug2: load_server_config: filename /etc/ssh/sshd_config.phabricator
debug2: load_server_config: done config len = 321
debug2: parse_server_config: config /etc/ssh/sshd_config.phabricator len 321
debug3: /etc/ssh/sshd_config.phabricator:6 setting AuthorizedKeysCommand /usr/phassh/phabricator-ssh-hook.sh
debug3: /etc/ssh/sshd_config.phabricator:7 setting AuthorizedKeysCommandUser phassh
debug3: /etc/ssh/sshd_config.phabricator:8 setting AllowUsers phassh
debug3: /etc/ssh/sshd_config.phabricator:13 setting Port 22
debug3: /etc/ssh/sshd_config.phabricator:14 setting Protocol 2
debug3: /etc/ssh/sshd_config.phabricator:15 setting PermitRootLogin no
debug3: /etc/ssh/sshd_config.phabricator:16 setting AllowAgentForwarding no
debug3: /etc/ssh/sshd_config.phabricator:17 setting AllowTcpForwarding no
debug3: /etc/ssh/sshd_config.phabricator:18 setting PrintMotd no
debug3: /etc/ssh/sshd_config.phabricator:19 setting PrintLastLog no
debug3: /etc/ssh/sshd_config.phabricator:20 setting PasswordAuthentication no
debug3: /etc/ssh/sshd_config.phabricator:21 setting AuthorizedKeysFile none
debug3: /etc/ssh/sshd_config.phabricator:23 setting PidFile /var/run/sshd-phabricator.pid
debug1: sshd version OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug3: Incorrect RSA1 identifier
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type RSA
debug3: Incorrect RSA1 identifier
debug3: Could not load "/etc/ssh/ssh_host_rsa_key" as a RSA1 public key
debug1: private host key: #0 type 1 RSA
debug3: Incorrect RSA1 identifier
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type DSA
debug3: Incorrect RSA1 identifier
debug3: Could not load "/etc/ssh/ssh_host_dsa_key" as a RSA1 public key
debug1: private host key: #1 type 2 DSA
debug3: Incorrect RSA1 identifier
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type ECDSA
debug3: Incorrect RSA1 identifier
debug3: Could not load "/etc/ssh/ssh_host_ecdsa_key" as a RSA1 public key
debug1: private host key: #2 type 3 ECDSA
debug3: Incorrect RSA1 identifier
debug3: Incorrect RSA1 identifier
debug3: Could not load "/etc/ssh/ssh_host_ed25519_key" as a RSA1 public key
debug1: private host key: #3 type 4 ED25519
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: rexec_argv[2]='-d'
debug1: rexec_argv[3]='-d'
debug1: rexec_argv[4]='-f'
debug1: rexec_argv[5]='/etc/ssh/sshd_config.phabricator'
debug3: oom_adjust_setup
Set /proc/self/oom_score_adj from 0 to -1000
debug2: fd 3 setting O_NONBLOCK
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug2: fd 4 setting O_NONBLOCK
debug3: sock_set_v6only: set socket 4 IPV6_V6ONLY
debug1: Bind to port 22 on ::.
Server listening on :: port 22.


我认为我的公钥不正确,但我不知道如何修改它。

我的/etc/passwd
phassh:x:1000:1000:phabricator vcs-user:/usr/phassh:/bin/bash

我的/etc/shadow
phassh:NP:16882:0:99999:7:::

我的/etc/sudoers
phassh ALL=(root) SETENV: NOPASSWD: /usr/bin/svnserve

另一个问题是:
在Diffusion托管存储库指南中说,将发布密钥复制到Settings > SSH Public Keys,公钥应该在哪里?

0 个答案:

没有答案