Skip to content

Commit 4a4331a

Browse files
committed
build: add SSH options to sftp
Pass -o PubkeyAuthentication=no -o PreferredAuthentications=password to sftp so SSH skips pubkey entirely and goes straight to the password exchange. Signed-off-by: Daniel Wagner <[email protected]>
1 parent e5bfcf0 commit 4a4331a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/upload.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ jobs:
8282
[ -f "$f" ] || continue
8383
echo "put $f $(basename "$f")"
8484
done
85-
) | sshpass -e sftp -b - "${SFTP_USERNAME}@${SFTP_SERVER}"
85+
) | sshpass -e sftp -b - \
86+
-o PubkeyAuthentication=no \
87+
-o PreferredAuthentications=password \
88+
"${SFTP_USERNAME}@${SFTP_SERVER}"
8689
8790
upload-release-assets:
8891
name: upload GitHub release assets

0 commit comments

Comments
 (0)