Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-25 23:54:05 -06:00
parent 18f565be3c
commit 5aaed7da75

View File

@@ -746,9 +746,9 @@ SETUPSSH(){
if [ ! -f ${NM_TMPFOLDER}/${nip}.down ]; then
echo -en "\n${idsCL[LightCyan]}Checking for Public SSH Key ... ${idsCL[Default]}"
if [ "$(ssh -o BatchMode=yes -o ConnectTimeout=3 root@${nip} echo ok 2>&1)" == "ok" ]; then
echo -e "\n${idsCL[Green]}Already Installed${idsCL[Default]}"
echo -e "${idsCL[Green]}Already Installed${idsCL[Default]}"
else
echo -e "\n${idsCL[Yellow]}Copying to Host ...${idsCL[Default]}"
echo -e "${idsCL[Yellow]}Copying to Host ...${idsCL[Default]}"
ssh-copy-id root@${nip}
fi