From d4e3057ce1fb333232649d4219cfda83fa092b96 Mon Sep 17 00:00:00 2001 From: Ihor Vinokur Date: Wed, 24 Jun 2026 10:14:01 +0300 Subject: [PATCH] fix: handle non-passphrase SSH prompts in askpass script Add early exit for SSH prompts that aren't requesting passphrase input. This prevents the askpass script from attempting to provide a passphrase for other SSH prompts like host key verification. Assisted-by: Claude Sonnet 4.5 Co-Authored-By: Claude Sonnet 4.5 Signed-off-by: Ihor Vinokur --- pkg/provision/workspace/ssh-askpass.sh | 5 +++++ 1 file changed, 5 insertions(+) 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