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
5 changes: 5 additions & 0 deletions pkg/provision/workspace/ssh-askpass.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh
# Only handle passphrase prompts - exit silently for other prompts (e.g., HTTPS git repo username/password request)
case "$1" in
"Enter passphrase for key '"*) ;;
*) exit 0 ;;
esac
PASSPHRASE_FILE_PATH="/etc/ssh/passphrase"
if [ ! -f $PASSPHRASE_FILE_PATH ]; then
echo "Error: passphrase file is missing in the '/etc/ssh/' directory" 1>&2
Expand Down
Loading