Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions contents/ssh-exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ if [[ "privatekey" == "$authentication" ]] ; then
SSH_KEY_STORAGE_PATH=$(mktemp "/tmp/.ssh-exec/ssh-keyfile.$USER@$HOST.XXXXX")
# Write the key data to a file
echo "$RD_CONFIG_SSH_KEY_STORAGE_PATH" > "$SSH_KEY_STORAGE_PATH"
# Remove ^M characters if present
sed -i -e "s/\r//g" "$SSH_KEY_STORAGE_PATH"
SSHOPTS="$SSHOPTS -i $SSH_KEY_STORAGE_PATH"

trap 'rm "$SSH_KEY_STORAGE_PATH"' EXIT
Expand Down