You’ll need to provide SSH public keys and originating IP addresses to the Support ticket so that your SSH access (and drush aliases) work correctly.
To configure remote access to your China Managed Services environments, create a <app>.site.yml drush alias file as shown in the following example:
prod:
host: <prod_ip_address>
user: <app_user>
root: /var/www/<app_user>/html/source/docroot/
uri: http://www.<app_domain>.com.cn
ssh:
options: '-o ProxyJump=<app_user>@<bastion_ip_address> -o ForwardAgent=yes'
paths:
drush-script: '/var/www/<app_user>/html/source/vendor/bin/drush'
test:
host: <test_ip_address>
user: <app_user>
root: /var/www/<app_user>/html/source/docroot/
uri: http://test.<app_domain>.com.cn
paths:
drush-script: '/var/www/<app_user>/html/source/vendor/bin/drush'
dev:
host: <dev_ip_address>
user: <app_user>
root: /var/www/<app_user>/html/source/docroot/
uri: http://dev.<app_domain>.com.cn
paths:
drush-script: '/var/www/<app_user>/html/source/vendor/bin/drush'The production environment routes through a bastion server and uses the ProxyJump command to seamlessly jump through it.
If your organization requires you to proxy through a corporate jump server so that you can originate from an allowlisted IP, you can add this to your ssh config so that the above drush alias configuration still works.
Host corporate.proxy
ForwardAgent yes
Host <dev_ip_address>
ProxyJump corporate.proxy
Host <test_ip_address>
ProxyJump corporate.proxy
Host <prod_ip_address>
ProxyJump corporate.proxyIf this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.