mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
fix SSH renew bookworm
This commit is contained in:
parent
3f837a2fc2
commit
d73191099a
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ if [ "$1" = "checkrepair" ]; then
|
||||||
# check if sshd host keys are missing / need generation
|
# check if sshd host keys are missing / need generation
|
||||||
countKeyFiles=$(ls -la /etc/ssh/ssh_host_* 2>/dev/null | grep -c "/etc/ssh/ssh_host")
|
countKeyFiles=$(ls -la /etc/ssh/ssh_host_* 2>/dev/null | grep -c "/etc/ssh/ssh_host")
|
||||||
echo "# countKeyFiles(${countKeyFiles})"
|
echo "# countKeyFiles(${countKeyFiles})"
|
||||||
if [ ${countKeyFiles} -lt 8 ]; then
|
if [ ${countKeyFiles} -lt 6 ]; then
|
||||||
echo "# DETECTED: MISSING SSHD KEYFILES --> Generating new ones"
|
echo "# DETECTED: MISSING SSHD KEYFILES --> Generating new ones"
|
||||||
/home/admin/config.scripts/blitz.ssh.sh renew
|
/home/admin/config.scripts/blitz.ssh.sh renew
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue