From 873fed9fd2765143793bc9f1ac5cb17199a087b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Fri, 29 May 2026 15:52:03 +0200 Subject: [PATCH] Changed known_hosts file location. --- script/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/deploy.sh b/script/deploy.sh index 37aa162..796796b 100755 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -101,7 +101,7 @@ setup_ssh() { echod "\n ➡️ Copying SSH key to target host '${TARGET_USER}@${LIVE_TARGET_IP}'..." - if cat "~/.ssh/known_hosts" | grep "${LIVE_TARGET_IP}"; then + if cat "/home/${USER}/.ssh/known_hosts" | grep "${LIVE_TARGET_IP}"; then echo -e "\n ⚠️ The SSH fingerprint for the selected IP address $(gum style --italic "\"${LIVE_TARGET_IP}\"") is not the same as the one in $(gum style --italic "\".ssh/known_hosts\""). This could occur for multiple reasons :