From 69153cd801cd45fa2e74072450eab6ad1d5f7175 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Sat, 30 Sep 2023 06:20:57 +0900 Subject: [PATCH] Update dhcp_interfaces.cfg --- Linux_reinstall/Ubuntu/CloudInit/dhcp_interfaces.cfg | 2 -- 1 file changed, 2 deletions(-) diff --git a/Linux_reinstall/Ubuntu/CloudInit/dhcp_interfaces.cfg b/Linux_reinstall/Ubuntu/CloudInit/dhcp_interfaces.cfg index 5469fa9..7f6564b 100644 --- a/Linux_reinstall/Ubuntu/CloudInit/dhcp_interfaces.cfg +++ b/Linux_reinstall/Ubuntu/CloudInit/dhcp_interfaces.cfg @@ -54,8 +54,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 - update-rc.d ssh enable - ssh-keygen -A - /etc/init.d/ssh restart