Skip to content

Commit

Permalink
Merge pull request #499 from mvocu/fixSshKey
Browse files Browse the repository at this point in the history
do not specify private ssh key directly in generic_send
  • Loading branch information
zlamalp authored Nov 4, 2020
2 parents 590afec + 2e42ba3 commit 2014dc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions send/generic_send
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ TIMEOUT_KILL="60" # 60 sec to kill after timeout
FACILITY_NAME=$1
DESTINATION=$2
DESTINATION_TYPE=$3
KEY_PATH="`echo ~`/.ssh/id_rsa"

PERUN_CERT="/etc/perun/ssl/perun-send.pem"
PERUN_KEY="/etc/perun/ssl/perun-send.key"
Expand Down Expand Up @@ -43,7 +42,7 @@ fi

#choose transport command, only url type has different transport command at this moment
if [ "$DESTINATION_TYPE" != "$DESTINATION_TYPE_URL" ]; then
TRANSPORT_COMMAND="ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o GSSAPIKeyExchange=no -o ConnectTimeout=5 -i $KEY_PATH"
TRANSPORT_COMMAND="ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o GSSAPIKeyExchange=no -o ConnectTimeout=5"
else
#add certificate to the curl if cert file and key file exists and they are readable
if [ -r "${PERUN_CERT}" -a -r "${PERUN_KEY}" ]; then
Expand Down

0 comments on commit 2014dc7

Please sign in to comment.