Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drush doesn't make outbound ssh connections in certain cases #80

Open
dkingofpa opened this issue Feb 13, 2013 · 1 comment
Open

Drush doesn't make outbound ssh connections in certain cases #80

dkingofpa opened this issue Feb 13, 2013 · 1 comment

Comments

@dkingofpa
Copy link

If the vm hostname and drush alias remote-host has the same domain name, drush may not work. Basically, if I have:

Vagrantfile: config.vm.host_name = 'example'
aliases.drushrc.php:

$aliases['dev'] = array(
  'root' => '/var/www/',
  'remote-host' => 'example.com',
  'remote-user' => 'myuser',
);

Then drush won't make outbound ssh connections in certain situations such as sql-sync or status. This is due to some code in drush that tries to determine the host to be called. If it thinks it's already on the remote host, it won't try to ssh out.

To fix, we can set remote_host to www.example.com if applicable or the remote host's actual ip address.

We need to have documentation and a warning. Or maybe just have a vm hostname naming convention of local-<hostname>?

@pearcec
Copy link
Contributor

pearcec commented Feb 13, 2013

If you name the vm local-hostname that will mean you will have to use local-hostname.local to access the website via the web browser using avahi. That is the whole reason we set config.vm.host_name = 'example' in the first place. Otherwise why not just keep it ubuntu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants