I know it's not equivalent, but I can drush rsync @local @remote
but not drush @remote status -v
. So my ssh keys are in place, I'm on the right port etc.
I get:
Loaded alias @remote from file /Volumes/Users/blah/.drush/aliases.drushrc.php
Begin redispatch via drush_invoke_process().
Calling proc_open(ssh -p 22009 BLAH@xxx.xxx.xxx.xxx 'env COLUMNS=238 drush --verbose --root=/home/REMOTE/d7 --uri=d7.REMOTE.co.uk core-status 2>&1' 2>&1);
env: drush: Permission denied
What do I need to set on @remote to make it work? Drush is installed there (same version) and works happily.
Is there are Drush error log or will I need to get the hosting company to have a look through logs?
Here is my alias:
$aliases['REMOTE'] = array(
'root' => '/home/REMOTE/SUBDIRECTORY',
'uri' => 'http://REMOTE.co.uk',
'remote-host' => 'xx.xx.xx.xx',
'ssh-options' => '-p 22009',
'remote-user' => 'SSH_USER',
'path-aliases' =>
array (
'%drush' => '/home/REMOTE/.composer/vendor/drush/drush',
'%site' => 'sites/default/',
'%dump-dir' => '/home/REMOTE/drush.dbdumps',
),
'databases' =>
array (
'default' =>
array (
'default' =>
array (
'database' => 'xxx',
'username' => 'xxx',
'password' => 'xxx',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
),
);