Admin/Phabricator/ssh/sshd_config.phabricator
author wenzelm
Wed, 25 Sep 2019 20:12:20 +0200
changeset 70758 5094098f5e0c
parent 70750 07673e7cb5e6
permissions -rw-r--r--
clarified sshd setup: standard service on non-standard port 222, special "vcs" service on standard port 22;

# 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/local/bin/ssh-hook
AuthorizedKeysCommandUser vcs
AllowUsers vcs

# You may need to tweak these options, but mostly they just turn off everything
# dangerous.

Port 22
Protocol 2
PermitRootLogin no
AllowAgentForwarding no
AllowTcpForwarding no
PrintMotd no
PrintLastLog no
PasswordAuthentication no
ChallengeResponseAuthentication no
AuthorizedKeysFile none

PidFile /var/run/sshd-phabricator.pid