Let local drush call remote drush with `bash` or `sh` I am trying to get database syncing with drush going. I installed drush on my webserver, but I only have the permission to run it with bash or sh before drush. (So with ./drush I get permission denied)

It seems that my local drush calls the remote drush without bash or sh, so I get permission denied when I try drush status for my @bla.remote.

Is there a way to tell drush to use these commands or can you think of another way to bypass this problem?

Could I write an alias somewhere into drush?
You will need to do something like this:

$aliases['myremotesite'] = array (
  'remote-host' =&gt; 'isp.example.com',
  'remote-user' =&gt; 'www-admin',
  'root' =&gt; '/srv/www/example.com/drupal',
  'uri' =&gt; 'http://example.com',
  'path-aliases' =&gt; array(
    '%drush-script' =&gt; '/home/www-admin/bin/my-drush',
  ),
);


Customize URIs, paths and sitenames to suit.  Then, create a 'bin' directory in your $HOME (if you don't already have one), and make yourself a 'my-drush' script like this:

#!/bin/bash

bash drush $@


Once we commit https://github.com/drush-ops/drush/pull/1595, you will be able to simplify the above by copying the drush.wrapper script to your remote site's Drupal root, and prefixing its call to the Drush launcher with bash.  That PR is close, but it's also Drush 8 only, so you might prefer making your own my-drush script, as shown above.