Changed known_hosts file location.
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@ setup_ssh() {
|
|||||||
|
|
||||||
echod "\n ➡️ Copying SSH key to target host '${TARGET_USER}@${LIVE_TARGET_IP}'..."
|
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\"").
|
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 :
|
This could occur for multiple reasons :
|
||||||
|
|||||||
Reference in New Issue
Block a user