Ensure to allow root connection with ssh.
This commit is contained in:
parent
982525a236
commit
03b1bcd3e1
|
@ -355,7 +355,7 @@ d-i cdrom-detect/eject boolean false
|
|||
d-i preseed/late_command string in-target chsh -s /bin/zsh ; \
|
||||
umount /dev/sys/lv_free ; lvremove -f /dev/sys/lv_free ; \
|
||||
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
|
||||
in-target /bin/sed -i 's/without-password/yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
|
||||
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
|
||||
in-target /bin/sh /tmp/latecommand/post.sh
|
||||
|
|
|
@ -346,7 +346,6 @@ d-i cdrom-detect/eject boolean false
|
|||
d-i preseed/late_command string in-target chsh -s /bin/zsh ; \
|
||||
umount /dev/sys/lv_free ; lvremove -f /dev/sys/lv_free ; \
|
||||
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
|
||||
#in-target /bin/sed -i 's/without-password/yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /bin/sed -i 's/.*\(PermitRootLogin\).*/\1 yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
|
||||
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
|
||||
|
|
|
@ -346,7 +346,7 @@ d-i cdrom-detect/eject boolean false
|
|||
d-i preseed/late_command string in-target chsh -s /bin/zsh ; \
|
||||
umount /dev/sys/lv_free ; lvremove -f /dev/sys/lv_free ; \
|
||||
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
|
||||
in-target /bin/sed -i 's/without-password/yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
|
||||
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
|
||||
in-target /bin/sh /tmp/latecommand/post.sh
|
||||
|
|
|
@ -346,7 +346,7 @@ d-i cdrom-detect/eject boolean false
|
|||
d-i preseed/late_command string in-target chsh -s /bin/zsh ; \
|
||||
umount /dev/sys/lv_free ; lvremove -f /dev/sys/lv_free ; \
|
||||
in-target /bin/rmdir /mnt/free ; in-target /bin/sed -i '/lv_free/d' /etc/fstab ; \
|
||||
in-target /bin/sed -i 's/without-password/yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /bin/sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config ; \
|
||||
in-target /usr/bin/tftp 129.20.203.27 -c get scripts/latecommand.tar.gz /tmp/latecommand.tar.gz ; \
|
||||
in-target tar xzf /tmp/latecommand.tar.gz -C /tmp/ ; \
|
||||
in-target /bin/sh /tmp/latecommand/post.sh
|
||||
|
|
Loading…
Reference in New Issue