I have a current site being hosted by A2Hosting - they advertise as being a Drupal-friendly host, yet have no way to support drush? A bait and switch, it seems.
However, I was able to get drush working on my Shared Hosting product; I installed Drupal 7.8, a theme, some modules...everything was going fine. Then I wanted to see if I could pull a full copy of the site down into a local dev environment. That's when my problems really began.
I'm running Ubuntu 11.4; I have a LAMP stack, and I have a Drupal 6 installation running - including a few sites that only appear locally (.vmdev). I have drush running...I set up SSH with a pub key and I can SSH into the hosted server.
However, when I attempt to run drush sql sync:
drush sql-sync @a2 @a2.local --create-db
I receive the following message:
Error: no database record could be found for @a2.local
...in /drush/aliases.drushrc.php, I have the following drush aliases mapped:
$aliases['a2'] = array(
'uri' => 'mysite.com',
'root' => '/home/mysite/public_html/mysite.com',
'db-url' => 'mysql://mysiteadmin:Passw0rd@localhost/mysite_db',
'remote-host' => 'a2sxx.a2hosting.com',
'ssh-options' => '-p 7822',
'remote-user' => 'mysiteuser',
'path-aliases' => array(
'%drush' => '/home/drush/drush',
'%drush-script' => '/home/drush/drush.php',