Changeset View
Changeset View
Standalone View
Standalone View
resources/sshd/phabricator-ssh-hook.sh
#!/bin/sh | #!/bin/sh | ||||
# NOTE: Replace this with the username that you expect users to connect with. | # NOTE: Replace this with the username that you expect users to connect with. | ||||
VCSUSER="vcs-user" | VCSUSER="vcs-user" | ||||
# NOTE: Replace this with the path to your Phabricator directory. | # NOTE: Replace this with the path to your Phabricator directory. | ||||
ROOT="/path/to/phabricator" | ROOT="/path/to/phabricator" | ||||
if [ "$1" != "$VCSUSER" ]; | if [ "$1" != "$VCSUSER" ]; | ||||
then | then | ||||
exit 1 | exit 1 | ||||
fi | fi | ||||
exec "$ROOT/bin/ssh-auth" $@ | exec "$ROOT/bin/ssh-auth" --sshd-key "$2" |