debian: 修复 debian 10 sshd_config 默认配置被清空
This commit is contained in:
parent
9deec238c2
commit
382feb49c7
@ -65,6 +65,7 @@ d-i preseed/early_command string \
|
|||||||
d-i partman/early_command string \
|
d-i partman/early_command string \
|
||||||
debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
|
debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
|
||||||
|
|
||||||
|
# debian 10 没有 /target/etc/ssh/sshd_config.d/ 文件夹
|
||||||
d-i preseed/late_command string \
|
d-i preseed/late_command string \
|
||||||
echo "PermitRootLogin yes" >/target/etc/ssh/sshd_config.d/01-permitrootlogin.conf || \
|
echo "PermitRootLogin yes" >/target/etc/ssh/sshd_config.d/01-permitrootlogin.conf || \
|
||||||
echo "PermitRootLogin yes" >/target/etc/ssh/sshd_config
|
echo "PermitRootLogin yes" >>/target/etc/ssh/sshd_config
|
||||||
|
Loading…
Reference in New Issue
Block a user