From 0175f6c8c6d7e1bab9720386d8fbf11b183af1d6 Mon Sep 17 00:00:00 2001 From: Daniel Ortiz Date: Wed, 2 Jul 2025 12:05:41 -0400 Subject: [PATCH] Comment out Port(s) in sshd_config, can cause port conflicts on deploy --- installer/install/tpot.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer/install/tpot.yml b/installer/install/tpot.yml index e4de97a4..850f9d21 100644 --- a/installer/install/tpot.yml +++ b/installer/install/tpot.yml @@ -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