diff --git a/install_files/ansible-base/roles/tor-hidden-services/templates/torrc b/install_files/ansible-base/roles/tor-hidden-services/templates/torrc index d7464fda80..a00a91d936 100644 --- a/install_files/ansible-base/roles/tor-hidden-services/templates/torrc +++ b/install_files/ansible-base/roles/tor-hidden-services/templates/torrc @@ -16,7 +16,7 @@ HiddenServicePort 80 127.0.0.1:8080 HiddenServiceAuthorizeClient stealth journalist {% endif %} -{% if enable_ssh_over_tor %} +{% if enable_ssh_over_tor and v2_onion_services %} HiddenServiceDir /var/lib/tor/services/ssh HiddenServiceVersion 2 HiddenServicePort 22 127.0.0.1:22