Skip to content

Commit 2510ace

Browse files
author
Elie
committed
Ensure SSH tcp forwarding is on
1 parent 5c7d26b commit 2510ace

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tasks/ssh.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,11 @@
2323
line: "AllowAgentForwarding yes"
2424
state: present
2525
notify: Restart ssh
26+
27+
- name: Allow tcp forwarding
28+
lineinfile:
29+
dest: /etc/ssh/sshd_config
30+
regexp: "^(# *)?AllowTcpForwarding"
31+
line: "AllowTcpForwarding yes"
32+
state: present
33+
notify: Restart ssh

0 commit comments

Comments
 (0)