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
- Configure Git to use a passphrase-protected SSH private key.
- Open a Git repository in Acode.
- 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.
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_ASKPASSSSH_ASKPASS_REQUIRE=forcessh-askpass.shHowever,
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
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:
SSH_ASKPASShandler.I'll open a pull request with this implementation shortly.