mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 20:24:39 +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
|
echo "Waiting for HDD/SSD ..." >> $logFile
|
||||||
|
sudo ls -la /etc/ssh >> $logFile
|
||||||
until [ ${isMounted} -eq 1 ] || [ ${#hddCandidate} -gt 0 ]
|
until [ ${isMounted} -eq 1 ] || [ ${#hddCandidate} -gt 0 ]
|
||||||
do
|
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")
|
countKeyFiles=$(sudo 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 8 ]; then
|
||||||
|
sudo ls -la /etc/ssh
|
||||||
echo "# DETECTED: MISSING SSHD KEYFILES --> Generating new ones"
|
echo "# DETECTED: MISSING SSHD KEYFILES --> Generating new ones"
|
||||||
sudo systemctl stop sshd
|
sudo systemctl stop sshd
|
||||||
sudo ssh-keygen -A
|
sudo ssh-keygen -A
|
||||||
sudo systemctl start sshd
|
sudo systemctl start sshd
|
||||||
|
sudo ls -la /etc/ssh
|
||||||
sleep 3
|
sleep 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user