diff --git a/debian/chroot.install b/debian/chroot.install index 0f9ddb8..ac94c8b 100755 --- a/debian/chroot.install +++ b/debian/chroot.install @@ -276,7 +276,7 @@ chroot /target /bin/sh /tmp/latecommand/post.stretch.sh sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /target/etc/ssh/sshd_config ### Add current authorized_keys from the rescue system if present if [ -f /root/.ssh/authorized_keys ]; then - mkdir -p -- /target/root/.ssh/authorized_keys + mkdir -p -- /target/root/.ssh cp -- /root/.ssh/authorized_keys /target/root/.ssh/authorized_keys else printf '%b\n' "${REDB}You might want to define an authorized key for SSH/root in /target/etc/ssh/sshd_config${RESET}"