mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-13 11:59:14 +00:00
Comment out Port(s) in sshd_config, can cause port conflicts on deploy
This commit is contained in:
parent
2f0a9f7f49
commit
0175f6c8c6
1 changed files with 6 additions and 0 deletions
|
@ -478,6 +478,12 @@
|
|||
tags:
|
||||
- "Ubuntu"
|
||||
|
||||
- name: Comment out Port(s) in sshd_config, can cause port conflicts on deploy (AlmaLinux, Debian, Fedora, Raspbian, Rocky, Ubuntu)
|
||||
ansible.builtin.replace:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: "(Port [0-9]+)"
|
||||
replace: '# \1'
|
||||
|
||||
- name: Change SSH Port to 64295 (AlmaLinux, Debian, Fedora, Raspbian, Rocky, Ubuntu)
|
||||
lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
|
|
Loading…
Reference in a new issue