API change: juju ssh should pass through ssh arguments

Jim Baker jim.baker at canonical.com
Thu Nov 17 01:34:12 UTC 2011


A proposed API change is that juju ssh should allow for standard ssh
arguments, by passing them through to the underlying ssh command. This
feature is requested by https://bugs.launchpad.net/juju/+bug/812441 Such
support enables using juju ssh in the following ways:


Running a command on a remote service unit:

$ juju ssh mysql/0 ls /


Setting up a tunnel:


$ juju ssh -L8080:localhost:80 wordpress/0


Not multiplexing the connection when connecting to machine 7, as might
be nice to do with a tunnel setup (multiplexing the connection is done
by default by juju ssh, but it can be overridden by the user in this way):

$ juju ssh -o "ControlMaster no" -L8080:localhost:80 7


And so forth, any options are simply passed through, along with the ssh
command (such as "ls /" as above). This does mean that ssh is ultimately
responsible for the parsing, so any parse errors are raised by it.


Proposed branch with this change:
https://code.launchpad.net/~jimbaker/juju/ssh-passthrough/+merge/79888


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/juju/attachments/20111116/cff82d81/attachment.pgp>


More information about the Juju mailing list