Skip to content

Commit

Permalink
Merge pull request #23 from rundeck-plugins/authentication-issue
Browse files Browse the repository at this point in the history
passing authentication type to lower case
  • Loading branch information
ltamaster authored Sep 1, 2020
2 parents 6269e79 + 9604d02 commit 4779ceb
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 4779ceb

Please sign in to comment.