Using Drush aliases between environments | Cloud Platform | Acquia Product Documentation
Cloud Platform
Using Drush aliases between environments
Using Drush aliases between environments
Date Published: February 25, 2022
Issue
Using Drush alias for production environment from staging server.
Resolution
Your staging and production environments may be on different servers, in which case you cannot use Drush aliases directly from staging for production environment which is on a different server. To be able to do this you can use ssh key forwarding by using the -A argument to SSH when connecting from your local computer.
To ssh on to the server use the following command replacing the server name as appropriate: