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