Developers are not allowed to have direct access to the Production Drupal servers, which are Linux. But, I need for developers to be able to run a limited set of Drush commands via remote site aliases.
I have this working by using Drush remote aliases and Drush policies. The Drush example docs don't go into much detail, but show www-data
in one of the examples.
* @code
* $aliases['live'] = array(
* 'remote-host' => 'server.domain.com',
* 'remote-user' => 'www-admin',
* 'root' => '/other/path/to/drupal',
* 'uri' => 'http://example.com',
* );
But, this can't be, can it? Yes, that's the "user" Apache runs as, but this user is a dummy account with no login or password credentials, or user directory, so no ssh keys.
How do you setup an account for use with the remote site aliases, or how did you modify the Apache user / process to use login credentials or ssh keys?