I need to install an existing Magento Cloud project locally using cli but facing issues with database dump. Indeed here's the error I get :

  Hello xxxxxxx (UUID: xxxxxxx), you successfully connected, but the service xxxxxxx doesn't exist or you do not have access to it  
  [email protected]: Permission denied (publickey).

More details :
- cli logged in to magento-cloud with an account having access to the project
- cloud user is super admin on master environnment
- ssh key has been added with magento-cloud ssh-key:add command
- I've been able to clone the project without any problem - same error when trying to use magento-cloud ssh

If you have any ideas why ssh is working for git clone but not for direct connection or if you think about a workaround, I'm listening :)

[EDIT] I've seen on platform.sh doc that a redeployment is necessary to activate new ssh keys but it's not mentionned in magento cloud doc, what do you think about it ?

  • Can you please guide us on how did you perform the redeployment steps?
    – Abhinav
    May 25, 2023 at 5:19

1 Answer 1


Finally, after trying a redeployment on master, SSH now works perfectly !

To trigger a new production deployment, you simply have to merge any code or empty commit (git commit --allow-empty -m "User xxx added") to master (see https://docs.platform.sh/dedicated-gen-2/architecture/deploying.html#deploying-to-production-and-staging).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.