Using drush and aliases.drushrc.php with non-standard SSH-Port
Today I'd like to give you a little hint how to a execute a remote SSH drush command successfully for a connection defined in aliases.drushrc.php when the SSH port differs from default "22". This is for example the case on Hetzner Hosting.
In my case I set the "remote-port" option, but with no success:
- 'remote-host' => '...',
- 'remote-user' => 'my-user',
- 'remote-port' => 222,
- );
I always received the following error when using drush core-rsync:
Finally I found the trick here to set the "ssh-options"-parameter to set the port: https://www.drupal.org/node/820514
- 'remote-host' => '...',
- 'remote-user' => 'my-user',
- 'ssh-options' => '-p 222',
- );
That worked great :)
The following issues are related to this:
Please leave a comment if this post was helpful for you.
- Login to post comments
Julian Pustkuchen, M. Sc. Wirtschaftsinformatik ist passionierter Software- & Webentwickler mit den Schwerpunkten Softwaredesign, Objektorientierung sowie Usability- & Ablaufoptimierung bei webks. Ein weiterer Schwerpunkt ist die Entwicklung im CMS Drupal.
Entwickelt Julian gerade keine Software, fährt er Ski, Mountainbike, spielt Badminton, segelt oder verbringt Zeit mit Freunden.
Dieser Blog dient als sein "öffentlicher Notizblo(ck/g)".
Webbasierte Lösungen? Machen wir!
webks: websolutions kept simple
http://www.webks.de
Dir hat dieser Beitrag viel Zeit und Nerven gespart?
Dann freue ich mich über jede kleine Anerkennung:
Oder du suchst weitere professionelle Unterstützung?
Dann bietet dir unser webks.de Softwareentwickler-Team professionelle Dienstleistungen im Web-Development und der Drupal CMS Entwicklung!
Comments
Perfect. Thanks for blogging
Perfect. Thanks for blogging about this! Custom client server with non-default port and I hate not using drush
voila!!just what i needed
voila!!just what i needed short and informative!!thanks
Thank you, just what I
Thank you, just what I needed!