docker4drupal icon indicating copy to clipboard operation
docker4drupal copied to clipboard

Drush remote connection: duplicate command

Open arrubiu opened this issue 7 years ago • 1 comments

I've added on my compose file a "ssh" service (the same image of php, drupal-php), to use ssh to access from remote to container. Everything works, I can connect from ssh from my pc to the container in a remote server. I'm using a drush alias, this:

$aliases['test1'] = array(
  'uri' => 'example.com',
  'db-url' => 'mysql://drupal:drupal@mariadb/drupal',
  'db-allows-remote' => TRUE,
  'remote-host' => 'example.com',
  'remote-user' => 'wodby',
  'root' => '/var/www/html',
  'ssh-options' => '-p 9090 -o "AddressFamily inet" -o "StrictHostKeyChecking=no"  ',
  'path-aliases' => array(
    '%files' => 'files',
    '%drush-script' => '/home/wodby/.composer/vendor/drush/drush/drush.php',
  ),
);

The problem is that if I launch a drush command, it's executed two times. This is the output of my shell:

bash-4.4$ drush @d8.test1 cr
Cache rebuild complete.                                                                                                                                                                               [ok]
Connection to example.com closed.
Cache rebuild complete.                                                     [ok]
bash-4.4$

I've not custom config on /home/wodby/.ssh/config on the remote host.

What's wrong?

Thanks

arrubiu avatar Aug 31 '18 06:08 arrubiu

Try running drush with debug flag to get more details what's happening, I doubt it has anything to do with the image or SSHD

csandanov avatar Sep 05 '18 05:09 csandanov