Skip to content

Commit

Permalink
passing authentication type to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
ltamaster committed Sep 1, 2020
1 parent 6269e79 commit 9604d02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contents/ssh-copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion contents/ssh-exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9604d02

Please sign in to comment.