mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-18 11:40:33 +02:00
ssh debug output
This commit is contained in:
@@ -265,6 +265,7 @@ source <(sudo /home/admin/config.scripts/blitz.datadrive.sh status)
|
||||
################################
|
||||
|
||||
echo "Waiting for HDD/SSD ..." >> $logFile
|
||||
sudo ls -la /etc/ssh >> $logFile
|
||||
until [ ${isMounted} -eq 1 ] || [ ${#hddCandidate} -gt 0 ]
|
||||
do
|
||||
|
||||
|
@@ -52,10 +52,12 @@ if [ "$1" = "checkrepair" ]; then
|
||||
countKeyFiles=$(sudo ls -la /etc/ssh/ssh_host_* 2>/dev/null | grep -c "/etc/ssh/ssh_host")
|
||||
echo "# countKeyFiles(${countKeyFiles})"
|
||||
if [ ${countKeyFiles} -lt 8 ]; then
|
||||
sudo ls -la /etc/ssh
|
||||
echo "# DETECTED: MISSING SSHD KEYFILES --> Generating new ones"
|
||||
sudo systemctl stop sshd
|
||||
sudo ssh-keygen -A
|
||||
sudo systemctl start sshd
|
||||
sudo ls -la /etc/ssh
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user