Closed (fixed)
Project:
Drush extras
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Apr 2012 at 14:19 UTC
Updated:
8 Dec 2012 at 11:50 UTC
I was always using the drupal-6.x dev version of this, since that pushkey command had the built in option of "--ssh-options" or something of the sort. As it was prior, without that, when I try the pushkey command and with the --ssh-options now, it doesn't establish the connection, due to the port being a non-standard one on my target machine.
See attached patch. Just makes use of the 'ssh-options' from the core-global-options and adds that to the command when establishing the connection. All of these changes are in pushkey.drush.inc - not sure if this should be mentioned in the help entry or not -- I'm no UX person, just someone trying to make this more useful.
| Comment | File | Size | Author |
|---|---|---|---|
| drush_extras-Implementing_ssh_options-000000-0.patch | 3.44 KB | tnanek |
Comments
Comment #1
tnanek commentedComment #2
greg.1.anderson commentedThank you for contributing to drush_extras. I apologize for the poor state of the releases here; I will try to sort that out shortly. Until you posted this message, I did not realize what a sorry state it was in. Please pull the latest code via git from the 6.x-3.x branch; ssh-options is already supported there. I will clean this up as soon as I can. I also plan on changing pushkey to use ssh-copy-id, which is an openssl builtin that does more or less the same thing as pushkey. Pushkey will, after this change, become a simple wrapper that will pregenerate the pub/priv keys if necessary, and then call ssh-copy-id, perhaps taking the target parameters from a drush site alias. Not sure when I will get to this; patches welcome.
Comment #3
jonhattanAt its current status the command already uses ssh-copy-id and also takes care of --ssh-options. Related: #1849284: copy-id ignores ssh-options in alias record
it doesn't create keys though.