@Harry we are sorry to hear you're facing this issue.
The “Host key verification failed” error implies there might be an issue with SSH key verification. This could be due to changes in the host keys on either the Azure App Service or Bitbucket side.
Azure App Service uses SSH keys to connect to your Bitbucket repository and download the code. Over time, Bitbucket might rotate its SSH keys for security purposes. If your Azure App Service still has the old SSH key stored, it won't be able to verify the new key presented by Bitbucket, leading to the verification failure.
Follow these steps to update SSH key:
- Go to your Azure App Service in the Azure portal. Navigate to "Deployment Center" and then "Settings" -> "Deployment Options." Under "SSH Key," check if the key is up-to-date.
- If you're unsure, generate a new SSH key pair in Azure App Service and update the deployment settings with the public key.
- Azure App Service uses SSH keys to connect to your Bitbucket repository and download the code. Over time, Bitbucket might rotate its SSH keys for security purposes.
- If your Azure App Service still has the old SSH key stored, it won't be able to verify the new key presented by Bitbucket, leading to the verification failure.