Browse Source

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 <rucketeg@protonmail.com>
lilik-openwrt-22.03
Rucke Teg 3 years ago
committed by Rosen Penev
parent
commit
fb113c5a70
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      net/openssh/files/sshd.failsafe

+ 0
- 2
net/openssh/files/sshd.failsafe View File

@ -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}


Loading…
Cancel
Save