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