【问题标题】:Using git with ssh for Phabricator将 git 与 ssh 一起用于 Phabricator
【发布时间】:2015-04-15 23:58:07
【问题描述】:

我正在配置我的服务器以使用 Phabricator 配置运行 ssh,以便将 git 与 ssh 一起使用。 但是当我尝试通过 ssh 连接到服务器时,我会在我的 sshd 日志中得到下一件事

debug3: Running AuthorizedKeysCommand: "/usr/libexec/phabricator-ssh-hook.sh vcs-user" as "vcs-user"
debug1: restore_uid: 0/0
debug1: temporarily_use_uid: 1000/1000 (e=0/0)
debug2: key_type_from_name: unknown key type 'command="'/srv/www/phabricator/phabricator/bin/ssh-exec''
debug3: key_read: missing keytype
debug2: user_key_allowed: check options: 'command="'/srv/www/phabricator/phabricator/bin/ssh-exec' '--phabricator-ssh-user' 'bogdaniy' '--phabricator-ssh-key' '1'",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB1NzaC1yc2EAAAADAQABAAABAQC9Vw/7rVzgEhk9W+zdFZ8Qsb/6ZBdjnGouhzqkPrXGiD6apbtS3tarSwXYjuqZxJMGJmkO0PcSUx1YBzpIvlYM6OJ2etzj7+P0wi573C6pDXxb+fJtPGOQJDnhN/v/9HaCLVOL5tvMmFhVWMH25bgCKGtqrZtpgnkReBEWfqTW1zux9c0O783DfHU1yIsc+epRNSKh0HUcDRZISZ3jMDMF8LZs4VBFJFYiADKI8u17HdOcopx98DpRsnDi8t6kj11nh/GzXyxBlTT1CGv8APCHeJRzW8uWspj88TGL4j50J42sEQjM4EzImnkKTvoGyiWYMBGazLt+vN/2guRM4Ost
'
debug2: key_type_from_name: unknown key type 'Ssh-rsa'

我看到在good log ssh-exec 之后人们得到类似的东西

debug1: matching key found: file /etc/phabricator-ssh-hook.sh, line 1 RSA 6a:e7:4c:68:96:7e:4c:87:3c:2f:ca:cd:8d:3e:34:5a

【问题讨论】:

    标签: git ssh phabricator


    【解决方案1】:

    这往往表明您的公钥格式存在问题。它是从 Phabricator 生成的(在 UI 中)还是您导入的?

    另外,您可以查看 Bitnami 的指南: https://wiki.bitnami.com/Applications/Bitnami_Phabricator#Using_SSH_authentication

    【讨论】:

      猜你喜欢
      • 2014-04-09
      • 2020-08-23
      • 1970-01-01
      • 1970-01-01
      • 2010-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-25
      相关资源
      最近更新 更多