From 7d0ce626abb79818b4932412d668661708950823 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Wed, 15 Nov 2023 11:34:00 +0900 Subject: [PATCH] Update dhcp_interfaces.cfg --- Linux_reinstall/RedHat/CloudInit/dhcp_interfaces.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Linux_reinstall/RedHat/CloudInit/dhcp_interfaces.cfg b/Linux_reinstall/RedHat/CloudInit/dhcp_interfaces.cfg index 1c2ac2d..0a5b9e3 100644 --- a/Linux_reinstall/RedHat/CloudInit/dhcp_interfaces.cfg +++ b/Linux_reinstall/RedHat/CloudInit/dhcp_interfaces.cfg @@ -43,7 +43,6 @@ network: # later commands runcmd: - systemctl enable sshd - - systemctl restart sshd - systemctl stop kdump - systemctl disable kdump - hostnamectl set-hostname HostName @@ -58,6 +57,8 @@ runcmd: - systemctl daemon-reload - echo 'export LC_ALL="C.UTF-8"' >> ~/.bash_profile - source ~/.bash_profile + - ssh-keygen -A + - systemctl restart sshd - grub2-mkconfig -o $(readlink -f /etc/grub2-efi.cfg) - rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg - touch /etc/cloud/cloud-init.disabled