Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user