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