diff --git a/pkg/provision/workspace/ssh-askpass.sh b/pkg/provision/workspace/ssh-askpass.sh index 9459092ae..688760450 100755 --- a/pkg/provision/workspace/ssh-askpass.sh +++ b/pkg/provision/workspace/ssh-askpass.sh @@ -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