Using drush 11 and Drupal 9 to test a local site on my Mac (using MAMP), I’m having difficulty getting site aliases to work. I used Drush Launcher to make my drush executable globally. I also created <DRUPAL_ROOT>/drush/sites/self.site.yml containing:
local: host: www.en9-local.pglatz.com user: pglatz root: /Users/pglatz/dev/electronovelty/en9-www/web uri: https://en9-local.pglatz.com
If I cd to my project root and type drush wd-show I see the status command correctly. But if I try using my alias with it, i.e. drush @local wd-show
I get this error:
ssh: connect to host www.en9-local.pglatz.com port 22: Connection refused In SiteProcess.php line 214: The command "ssh -t -o PasswordAuthentication=no pglatz@www.en9-local.pglatz.com 'drush wd-show --uri=https://www.en9-local.pglatz.com --root=/Users/pglatz/dev/electron ovelty/en9-www/web'" failed. Exit Code: 255(Unknown error) Working directory:
This is a local host, so why is it using ssh? My goal is to have both ‘local’ and ‘prod’ aliases so can can run Drush on my production server.