use ssh config with the correct port specified

This commit is contained in:
Tim Flink 2017-01-04 19:05:45 +00:00
parent ef9f534296
commit dc795765be
2 changed files with 5 additions and 1 deletions

View file

@ -9,7 +9,11 @@ AuthorizedKeysCommandUser {{ phabricator_vcs_user }}
# You may need to tweak these options, but mostly they just turn off everything
# dangerous.
{% if sshd_port == 22 %}
Port 222
{%else%}
Port 22
{%end%}
Protocol 2
PermitRootLogin no
AllowAgentForwarding no