diff --git a/resources/sshd/phabricator-ssh-hook.sh b/resources/sshd/phorge-ssh-hook.sh similarity index 66% rename from resources/sshd/phabricator-ssh-hook.sh rename to resources/sshd/phorge-ssh-hook.sh index fc7de81dad..4e5843986e 100755 --- a/resources/sshd/phabricator-ssh-hook.sh +++ b/resources/sshd/phorge-ssh-hook.sh @@ -1,14 +1,14 @@ #!/bin/sh # NOTE: Replace this with the username that you expect users to connect with. VCSUSER="vcs-user" -# NOTE: Replace this with the path to your Phabricator directory. -ROOT="/path/to/phabricator" +# NOTE: Replace this with the path to your Phorge directory. +ROOT="/path/to/phorge" if [ "$1" != "$VCSUSER" ]; then exit 1 fi exec "$ROOT/bin/ssh-auth" $@ diff --git a/resources/sshd/sshd_config.phabricator.example b/resources/sshd/sshd_config.phorge.example similarity index 84% rename from resources/sshd/sshd_config.phabricator.example rename to resources/sshd/sshd_config.phorge.example index 506d32bbbf..34c0d14d33 100644 --- a/resources/sshd/sshd_config.phabricator.example +++ b/resources/sshd/sshd_config.phorge.example @@ -1,24 +1,24 @@ # NOTE: You must have OpenSSHD 6.2 or newer; support for AuthorizedKeysCommand # was added in this version. # NOTE: Edit these to the correct values for your setup. -AuthorizedKeysCommand /usr/libexec/phabricator-ssh-hook.sh +AuthorizedKeysCommand /usr/libexec/phorge-ssh-hook.sh AuthorizedKeysCommandUser vcs-user AllowUsers vcs-user # You may need to tweak these options, but mostly they just turn off everything # dangerous. Port 2222 Protocol 2 PermitRootLogin no AllowAgentForwarding no AllowTcpForwarding no PrintMotd no PrintLastLog no PasswordAuthentication no ChallengeResponseAuthentication no AuthorizedKeysFile none -PidFile /var/run/sshd-phabricator.pid +PidFile /var/run/sshd-phorge.pid