summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2021-03-15 13:01:33 +0100
committerMiklós Fazekas <mfazekas@szemafor.com>2021-08-04 08:07:31 +0200
commit435060faa7264e54b96005f0ffd9241966aabde2 (patch)
treea6842365a6874abf50f844795deec549f9f622c9 /test
parent0cad9a9e9beb3023ed77e908d3f175f330f13dda (diff)
downloadnet-ssh-435060faa7264e54b96005f0ffd9241966aabde2.tar.gz
Disable x11 forward
Diffstat (limited to 'test')
-rw-r--r--test/integration/playbook.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/integration/playbook.yml b/test/integration/playbook.yml
index 0264139..1345290 100644
--- a/test/integration/playbook.yml
+++ b/test/integration/playbook.yml
@@ -79,11 +79,13 @@
lineinfile: dest='/etc/ssh/sshd_config' line='TrustedUserCAKeys /etc/ssh/users_ca.pub'
notify: restart sshd
- name: sshd allow forward
- lineinfile: dest='/etc/ssh/sshd_config' line='AllowTcpForwarding all' regexp=LogLevel
+ lineinfile: dest='/etc/ssh/sshd_config' line='AllowTcpForwarding all' regexp=AllowTcpForwarding
notify: restart sshd
- name: sshd allow forward
- lineinfile: dest='/etc/ssh/sshd_config' line='GatewayPorts yes' regexp=LogLevel
+ lineinfile: dest='/etc/ssh/sshd_config' line='GatewayPorts yes' regexp=GatewayPorts
notify: restart sshd
+ - name: disable x11 forward
+ lineinfile: dest='/etc/ssh/sshd_config' line='X11Forwarding no' regexp X11Forwarding
- name: sshd allow forward
lineinfile: dest='/etc/ssh/sshd_config' line='PasswordAuthentication=yes' regexp=PasswordAuthentication
notify: restart sshd