From 726e7d14de5c2e98af925b2fbcb32c1b866f7965 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Sat, 30 Sep 2023 06:27:52 +0900 Subject: [PATCH] Update ipv4_static_ipv6_static_interfaces.cfg --- .../Ubuntu/CloudInit/ipv4_static_ipv6_static_interfaces.cfg | 2 -- 1 file changed, 2 deletions(-) diff --git a/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_ipv6_static_interfaces.cfg b/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_ipv6_static_interfaces.cfg index 3b75941..062cbb4 100644 --- a/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_ipv6_static_interfaces.cfg +++ b/Linux_reinstall/Ubuntu/CloudInit/ipv4_static_ipv6_static_interfaces.cfg @@ -61,8 +61,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