Changeset View
Changeset View
Standalone View
Standalone View
resources/sshd/phorge-ssh-hook.sh
- This file was moved from 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 Phorge directory. | ||||
ROOT="/path/to/phabricator" | ROOT="/path/to/phorge" | ||||
if [ "$1" != "$VCSUSER" ]; | if [ "$1" != "$VCSUSER" ]; | ||||
then | then | ||||
exit 1 | exit 1 | ||||
fi | fi | ||||
exec "$ROOT/bin/ssh-auth" $@ | exec "$ROOT/bin/ssh-auth" $@ |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0