enable root login in vm's sshd (new openssh changed the keyword)

This commit is contained in:
parazyd 2017-07-20 13:45:54 +02:00
parent 18f4c0b072
commit 258bcc8083
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,8 @@ EOF
print "rootfs / rootfs rw 0 0" | sudo tee ${strapdir}/etc/fstab >/dev/null
sudo sed -i ${strapdir}/etc/ssh/sshd_config \
-e 's/without-password/yes/' || zerr
-e 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' \
-e 's/PermitRootLogin without-password/PermitRootLogin yes/'|| zerr
}
vm_setup_grub() {