From 28039e91490b3146bcf8c62d7232ebf1ae3fae39 Mon Sep 17 00:00:00 2001 From: Yinyin Liu Date: Fri, 9 Aug 2024 15:09:35 +0200 Subject: [PATCH] update ssh key check in Cerbo --- .../Cerbo_Release/update_all_cerbo_installations.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/firmware/Cerbo_Release/update_all_cerbo_installations.sh b/firmware/Cerbo_Release/update_all_cerbo_installations.sh index cd73af874..5b37c07e2 100755 --- a/firmware/Cerbo_Release/update_all_cerbo_installations.sh +++ b/firmware/Cerbo_Release/update_all_cerbo_installations.sh @@ -22,15 +22,13 @@ ip_addresses=("10.2.1.193" "10.2.2.61" "10.2.3.225" "10.2.2.248" "10.2.2.194" "1 # scp -r "${cerbo_release_file_path}/aggregator" "root@"$ip_address":/data" for ip_address in "${ip_addresses[@]}"; do - ## build connection first - ssh "$username"@"$ip_address" "echo '$root_password'" ## stop battery service if change any file related to battery service otherwise no need to do this - # ssh "$username"@"$ip_address" "svc -d /service/dbus-fzsonick-48tl.*" + # ssh -o StrictHostKeyChecking=no "$username"@"$ip_address" "svc -d /service/dbus-fzsonick-48tl.*" scp "${cerbo_release_file_path}/flows.json" "root@"$ip_address":/data/home/nodered/.node-red/" - ssh "$username"@"$ip_address" "dbus -y com.victronenergy.platform /Services/NodeRed/Mode SetValue %0" - ssh "$username"@"$ip_address" "dbus -y com.victronenergy.platform /Services/NodeRed/Mode SetValue %1" + ssh -o StrictHostKeyChecking=no "$username"@"$ip_address" "dbus -y com.victronenergy.platform /Services/NodeRed/Mode SetValue %0" + ssh -o StrictHostKeyChecking=no "$username"@"$ip_address" "dbus -y com.victronenergy.platform /Services/NodeRed/Mode SetValue %1" ## start battery service - # ssh "$username"@"$ip_address" "svc -u /service/dbus-fzsonick-48tl.*" + # ssh -o StrictHostKeyChecking=no "$username"@"$ip_address" "svc -u /service/dbus-fzsonick-48tl.*" echo "Deployed and ran commands on $ip_address" done