This commit is contained in:
Bohan Yang
2020-09-23 19:45:25 +08:00
parent a6e9eaf94f
commit 79e284ec4a
+3 -1
View File
@@ -329,7 +329,9 @@ if [ "$skip_account_setup" != true ]; then
EOF EOF
if [ "$username" = root ]; then if [ "$username" = root ]; then
_late_command 'sed -ri "s/^#?PermitRootLogin .+/PermitRootLogin yes/" /etc/ssh/sshd_config' if [ -z "$authorized_keys_url" ]; then
_late_command 'sed -ri "s/^#?PermitRootLogin .+/PermitRootLogin yes/" /etc/ssh/sshd_config'
fi
$save_preseed << EOF $save_preseed << EOF
d-i passwd/root-login boolean true d-i passwd/root-login boolean true
d-i passwd/make-user boolean false d-i passwd/make-user boolean false