Page MenuHomePhabricator

D21445.id.diff
No OneTemporary

D21445.id.diff

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

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 29, 10:33 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7371418
Default Alt Text
D21445.id.diff (769 B)

Event Timeline