Skip to content

SSH passphrase prompt is not handled by integrated SSH_ASKPASS #52

Description

@vamsi-krishna2580

Description

When using an SSH private key protected with a passphrase, Git operations performed through the integrated SSH authentication fail because the plugin does not handle SSH passphrase requests.

The plugin already configures:

  • SSH_ASKPASS
  • SSH_ASKPASS_REQUIRE=force
  • ssh-askpass.sh

However, handleSSHAskpass() currently returns an empty string instead of prompting the user for the SSH key passphrase.

As a result, authentication fails for repositories using passphrase-protected SSH keys.

Steps to Reproduce

  1. Configure Git to use a passphrase-protected SSH private key.
  2. Open a Git repository in Acode.
  3. Perform a Git operation such as Push, Pull, Fetch, or Sync.

Expected Behavior

The plugin should prompt for the SSH key passphrase and return it to Git so the operation can continue successfully.

Actual Behavior

Authentication fails because no passphrase is provided to Git.

Additional Information

I have implemented a fix that:

  • Prompts the user for the SSH key passphrase when required.
  • Returns the passphrase through the integrated SSH_ASKPASS handler.
  • Caches the passphrase in memory for a short period to avoid repeated prompts during consecutive Git operations.

I'll open a pull request with this implementation shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions