From: Rucke Teg Date: Thu, 10 Feb 2022 22:00:55 +0000 (+0100) Subject: openssh-server: change sshd.failsafe X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=fb113c5a706b26af57463877791fa32314b07b78;p=openwrt-packages.git openssh-server: change sshd.failsafe There is no need to remove root password from /etc/shadow as the password in the file is blank anyway in the failsafe mode. Signed-off-by: Rucke Teg --- diff --git a/net/openssh/files/sshd.failsafe b/net/openssh/files/sshd.failsafe index ed1429bb4..a95745d09 100755 --- a/net/openssh/files/sshd.failsafe +++ b/net/openssh/files/sshd.failsafe @@ -8,8 +8,6 @@ failsafe_sshd () { sshd_tmpdir=/tmp/sshd mkdir $sshd_tmpdir - sed -i 's/^root:.*/root::0:17000:::::/g' /etc/shadow - for type in ed25519; do key=$sshd_tmpdir/ssh_host_${type}_key ssh-keygen -N '' -t ${type} -f ${key}