projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95f38fe
)
openssh-server: change sshd.failsafe
author
Rucke Teg
<rucketeg@protonmail.com>
Thu, 10 Feb 2022 22:00:55 +0000
(23:00 +0100)
committer
Rosen Penev
<rosenp@gmail.com>
Fri, 11 Feb 2022 05:10:08 +0000
(21:10 -0800)
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>
net/openssh/files/sshd.failsafe
patch
|
blob
|
history
diff --git
a/net/openssh/files/sshd.failsafe
b/net/openssh/files/sshd.failsafe
index ed1429bb4fe65abd4e4ce778f894513daf8446e9..a95745d096d8285cb74d62034f7687714b4a0357 100755
(executable)
--- 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}