Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/resources/sshd/phabricator-ssh-hook.sh
12240 views
1
#!/bin/sh
2
3
# NOTE: Replace this with the username that you expect users to connect with.
4
VCSUSER="vcs-user"
5
6
# NOTE: Replace this with the path to your Phabricator directory.
7
ROOT="/path/to/phabricator"
8
9
if [ "$1" != "$VCSUSER" ];
10
then
11
exit 1
12
fi
13
14
exec "$ROOT/bin/ssh-auth" $@
15
16