Descriptioncmd/juju: ssh/scp commands extra arguments; fixes
Removed the extraneous "--" that the ssh command
adds to the passed arguments, so any extra arguments
after the command will be forwarded to ssh properly.
It worked in 1.16, so this fixes a regression.
This fixes bug #1281577.
The scp command claims in its help that it supports
-- to pass extra arguments to scp, but it does not
and also does not support multiple local/remote
targets to be specified, as OpenSSH scp command does.
This fixes bug #1283412.
Also, improved a lot of ssh-related tests in both
utils/ssh/ and in cmd/juju/, adding new tests as
needed for the extra arguments.
Improved help texts for ssh, scp and add-machine
commands (included examples for the extra args
and multiple targets for scp, added ssh: example
for add-machine).
All changes are tested live:
- bootstrapping on EC2 and running ssh or scp
to test extra args and multiple targets;
- manual bootstrapping
- add-machine ssh:user@host to an existing env;
- using juju on Windows, to test the embedded
go.crypto ssh command.
https://code.launchpad.net/~dimitern/juju-core/302-lp-1281577-ssh-command-extra-args/+merge/207498
Requires: https://code.launchpad.net/~dimitern/juju-core/301-lp-1282553-use-curl-not-wget-precise/+merge/207443
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : cmd/juju: ssh/scp commands extra arguments; fixes #
Total comments: 14
MessagesTotal messages: 6
|