From fc78f970fa3ef1c31eb7ed5bc8591d1f9c68e730 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Thu, 8 Jun 2023 03:23:22 +0900 Subject: [PATCH] Update 99-fake_cloud.cfg --- Linux_reinstall/Ubuntu/CloudInit/99-fake_cloud.cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Linux_reinstall/Ubuntu/CloudInit/99-fake_cloud.cfg b/Linux_reinstall/Ubuntu/CloudInit/99-fake_cloud.cfg index 0e4858f..72ed983 100644 --- a/Linux_reinstall/Ubuntu/CloudInit/99-fake_cloud.cfg +++ b/Linux_reinstall/Ubuntu/CloudInit/99-fake_cloud.cfg @@ -13,7 +13,7 @@ system_info: security: http://ports.ubuntu.com/ubuntu-ports # configure hostname -hostname: myhost +hostname: HostName # configure root user users: @@ -24,10 +24,10 @@ users: chpasswd: expire: false list: | - root:LeitboGi0ro + root: tmpWORD users: - name: root - password: LeitboGi0ro + password: tmpWORD type: text # configure network @@ -42,7 +42,7 @@ network: # later commands runcmd: - - sed -ri 's/^#?Port.*/Port 22/g' /etc/ssh/sshd_config + - 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 - update-rc.d ssh enable