From 9604d024639be84ae140e36f48a5890a41fc468d Mon Sep 17 00:00:00 2001 From: ltamaster Date: Tue, 1 Sep 2020 12:01:59 -0400 Subject: [PATCH] passing authentication type to lower case --- contents/ssh-copy.sh | 2 +- contents/ssh-exec.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contents/ssh-copy.sh b/contents/ssh-copy.sh index d83e3d8..9f05025 100755 --- a/contents/ssh-copy.sh +++ b/contents/ssh-copy.sh @@ -43,7 +43,7 @@ fi SSHOPTS="-p -P $PORT -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet $RD_CONFIG_SSH_OPTIONS" -authentication=$RD_CONFIG_AUTHENTICATION +authentication=`echo "$RD_CONFIG_AUTHENTICATION" | awk '{ print tolower($1) }'` if [ "$authentication" != "privatekey" ] && [ "$authentication" != "password" ] ; then echo "wrong ssh authentication type, use privatekey or password" diff --git a/contents/ssh-exec.sh b/contents/ssh-exec.sh index 95edac4..25e4faa 100755 --- a/contents/ssh-exec.sh +++ b/contents/ssh-exec.sh @@ -38,7 +38,7 @@ fi SSHOPTS="-p $PORT -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet $RD_CONFIG_SSH_OPTIONS" -authentication=$RD_CONFIG_AUTHENTICATION +authentication=`echo "$RD_CONFIG_AUTHENTICATION" | awk '{ print tolower($1) }'` if [ "$authentication" != "privatekey" ] && [ "$authentication" != "password" ] ; then echo "wrong ssh authentication type, use privatekey or password" >&2