enable root login in vm's sshd (new openssh changed the keyword)
This commit is contained in:
parent
18f4c0b072
commit
258bcc8083
3
zlibs/vm
3
zlibs/vm
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue