79691634

Date: 2025-07-06 09:43:38
Score: 1.5
Natty:
Report link

The error Permission denied (publickey) means the Bitbucket Pipeline environment doesn't have access to a valid SSH private key for your server. Even if your local machine can connect, the pipeline runs in a separate container with its own keys. You need to add a matching private SSH key to Bitbucket (as a repository variable or via Pipelines SSH Keys) and the corresponding public key to your droplet's ~/.ssh/authorized_keys. Also ensure the server's fingerprint is added to known_hosts using ssh-keyscan.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jos Achtervelder