This commit is contained in:
Bohan Yang
2020-09-23 19:22:04 +08:00
parent 8eb6d09d63
commit 60482a8e82
+1 -1
View File
@@ -329,7 +329,7 @@ if [ "$skip_account_setup" != true ]; then
EOF
if [ "$username" = root ]; then
_late_command "sed -ri 's/^#?PermitRootLogin .+/PermitRootLogin yes/' /etc/ssh/sshd_config"
_late_command 'sed -ri "s/^#?PermitRootLogin .+/PermitRootLogin yes/" /etc/ssh/sshd_config'
$save_preseed << EOF
d-i passwd/root-login boolean true
d-i passwd/make-user boolean false