From a61c82e4321d2d598aa316f2faeb82b6365d01bc Mon Sep 17 00:00:00 2001 From: rootzoll Date: Wed, 24 Jun 2020 03:01:48 +0200 Subject: [PATCH] improved copy pass check --- home.admin/98repairMenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/98repairMenu.sh b/home.admin/98repairMenu.sh index e62682675..1615518d3 100755 --- a/home.admin/98repairMenu.sh +++ b/home.admin/98repairMenu.sh @@ -77,7 +77,7 @@ copyHost() if [ ${#targetPassword} -eq 0 ]; then return fi - canLogin=$(sshpass -p "${targetPassword}" ssh -t bitcoin@${targetIP} "echo 'working'" 2>/dev/null | grep -c 'working') + canLogin=$(sudo sshpass -p "${targetPassword}" ssh -t -o StrictHostKeyChecking=no bitcoin@${targetIP} "echo 'working'" 2>/dev/null | grep -c 'working') if [ ${canLogin} -eq 0 ]; then whiptail --msgbox "Password was not working for IP: ${targetIP}\n\n- check thats the correct IP for correct RaspiBlitz\n- check that you used PASSWORD A and had no typo\n- If you tried too often, wait 1h try again" 11 58 "" --title " Testing Target Password " --backtitle "RaspiBlitz - Copy Blockchain" return