fix
This commit is contained in:
parent
c0152c32e3
commit
46a435e44d
@ -111,7 +111,8 @@ d-i preseed/late_command string \
|
|||||||
in-target chown --recursive root:root /root/.ssh; \
|
in-target chown --recursive root:root /root/.ssh; \
|
||||||
in-target chmod 0600 /root/.ssh/authorized_keys; \
|
in-target chmod 0600 /root/.ssh/authorized_keys; \
|
||||||
in-target update-alternatives --set editor /usr/bin/vim.basic; \
|
in-target update-alternatives --set editor /usr/bin/vim.basic; \
|
||||||
in-target sed -i -e 's/^\(PasswordAuthentication\).*/\1 yes/g' -e 's/^\(PermitRootLogin\).*/\1 yes/g' /etc/ssh/sshd_config; \
|
in-target sed -i -e 's/^\(PasswordAuthentication\).*/\1 yes/g' /etc/ssh/sshd_config; \
|
||||||
|
# in-target sed -i -e 's/^\(PermitRootLogin\).*/\1 yes/g' /etc/ssh/sshd_config; \
|
||||||
in-target sed -i -e '/^GRUB_HIDDEN_TIMEOUT=/d' -e 's/^\(GRUB_HIDDEN_TIMEOUT_QUIET\)=true/\1=false/' /etc/default/grub; \
|
in-target sed -i -e '/^GRUB_HIDDEN_TIMEOUT=/d' -e 's/^\(GRUB_HIDDEN_TIMEOUT_QUIET\)=true/\1=false/' /etc/default/grub; \
|
||||||
in-target systemctl enable --now sshd; \
|
in-target systemctl enable --now sshd; \
|
||||||
in-target update-grub
|
in-target update-grub
|
||||||
|
Loading…
x
Reference in New Issue
Block a user