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>
sshd_tmpdir=/tmp/sshd
mkdir $sshd_tmpdir
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}
for type in ed25519; do
key=$sshd_tmpdir/ssh_host_${type}_key
ssh-keygen -N '' -t ${type} -f ${key}