Instructions to execute DrupalConsole commands remotely using site alias against a DrupalVM site.
NOTE: make sure you make changes according to your DrupalVM custom configuration.
Execute this instruction:
cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
Path: ~/.console/sites/drupalvm.yml
dev:
root: /var/www/drupalvm/drupal
host: 192.168.88.88
user: vagrant
console: /usr/local/bin/drupal
drupal @drupalvm.dev list
Update file ~/.console/config.yml
and add
application:
default:
global:
options:
target: drupalvm.dev
You can cut out the "Allow paswordless ssh connection" section by setting up the alias like the following: