use ssh config with the correct port specified
This commit is contained in:
parent
ef9f534296
commit
dc795765be
2 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,7 @@ tcp_ports: [ 80, 222, 443, "{{ buildslave_port }}", 222]
|
|||
extra_enablerepos: ''
|
||||
|
||||
sshd_port: 222
|
||||
sshd_config: ssh/sshd_config.qadevel
|
||||
sshd_config: ssh/sshd_config.qa-stg
|
||||
|
||||
sslcertfile: wildcard-2016.qadevel.cloud.fedoraproject.org.cert
|
||||
sslkeyfile: wildcard-2016.qadevel.cloud.fedoraproject.org.key
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue