Applicable to:

Plesk Onyx for Linux

Symptoms

Adding remote Bitbucket repository fails with the following error in Plesk UI:

PLESK_ERROR: Deploying files to subdomain.example.com Public key for the server at 'bitbucket.org' is already known in '/var/www/vhosts/example.com/.ssh/git_known_hosts'. Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

The SSH keys was generated with passphrase protection.

Cause

The SSH key has been generated with passphrase protection.

Resolution

Support of SSH keys with passphrase protection hasn't been implemented in Plesk Git extension yet.

Vote for feature implementation on User Voice portal. The top-ranked suggestions are likely to be included in next versions of the extension.

Until the feature is implemented, the following workaround is suggested:

Generate an SSH key without passphrase protection in Bitbucket account.