diff --git a/resources/sshd/phabricator-ssh-hook.sh b/resources/sshd/phabricator-ssh-hook.sh --- a/resources/sshd/phabricator-ssh-hook.sh +++ b/resources/sshd/phabricator-ssh-hook.sh @@ -11,4 +11,4 @@ exit 1 fi -exec "$ROOT/bin/ssh-auth" $@ +exec "$ROOT/bin/ssh-auth" --sshd-key "$2" diff --git a/resources/sshd/sshd_config.phabricator.example b/resources/sshd/sshd_config.phabricator.example --- a/resources/sshd/sshd_config.phabricator.example +++ b/resources/sshd/sshd_config.phabricator.example @@ -3,7 +3,7 @@ # NOTE: Edit these to the correct values for your setup. -AuthorizedKeysCommand /usr/libexec/phabricator-ssh-hook.sh +AuthorizedKeysCommand /usr/libexec/phabricator-ssh-hook.sh %u %k AuthorizedKeysCommandUser vcs-user AllowUsers vcs-user