From 0e83fd94d9b31cdcb1f3c2743de52c1a6aa1af33 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Sun, 1 Oct 2023 01:09:31 +0900 Subject: [PATCH] Update ipv4_static_ipv6_dhcp_interfaces.cfg --- .../RedHat/CloudInit/ipv4_static_ipv6_dhcp_interfaces.cfg | 3 --- 1 file changed, 3 deletions(-) diff --git a/Linux_reinstall/RedHat/CloudInit/ipv4_static_ipv6_dhcp_interfaces.cfg b/Linux_reinstall/RedHat/CloudInit/ipv4_static_ipv6_dhcp_interfaces.cfg index 05aeb9c..358429d 100644 --- a/Linux_reinstall/RedHat/CloudInit/ipv4_static_ipv6_dhcp_interfaces.cfg +++ b/Linux_reinstall/RedHat/CloudInit/ipv4_static_ipv6_dhcp_interfaces.cfg @@ -46,9 +46,6 @@ network: # later commands runcmd: - - sed -ri 's/^#?Port.*/Port sshPORT/g' /etc/ssh/sshd_config - - sed -ri 's/^#?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config - - sed -ri 's/^#?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config - systemctl enable sshd - ssh-keygen -A - systemctl restart sshd