Alert for SSH type

This commit is contained in:
Michael Stanclift 2020-05-24 21:29:23 -05:00
parent 82e2a474a7
commit f61c8fa257

View File

@ -278,12 +278,17 @@ function validate_os_sshpass {
if test -z "$REMOTE_PASS" if test -z "$REMOTE_PASS"
then then
sshpassword='' sshpassword=''
MESSAGE="Using SSH Key-Pair Authentication"
else else
sshpassword="sshpass -p ${REMOTE_PASS}" sshpassword="sshpass -p ${REMOTE_PASS}"
MESSAGE="Using SSH Password Authentication"
fi fi
else else
sshpassword='' sshpassword=''
MESSAGE="Using SSH Key-Pair Authentication"
fi fi
echo -e "$INFO $MESSAGE"
} }
# List GS Arguments # List GS Arguments