ssh command line help incorrect

Bug #1191066 reported by Stuart Bishop
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Matthew Williams

Bug Description

'juju help ssh' is a little confused. It states 'can be either a machine id or a service name', but that should be 'or a unit name'.

$ juju help ssh
usage: juju ssh [options] <service> [<ssh args>...]
purpose: launch an ssh shell on a given unit or machine

options:
-e, --environment (= "")
    juju environment to operate in

Launch an ssh shell on the machine identified by the <service> parameter.
<service> can be either a machine id or a service name. Any extra parameters
are treated as extra parameters for the ssh command.

Related branches

William Reade (fwereade)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
tags: added: bitesize
William Reade (fwereade)
tags: added: cmdline
Revision history for this message
Matthew Williams (mattyw) wrote :
Changed in juju-core:
assignee: nobody → Matthew Williams (mattyw)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 1.14.0
status: Fix Committed → Fix Released
Revision history for this message
Taylor Brown (taytay) wrote :

I just got bitten by this in 1.16, but it was due to the term service used in two other contexts, so I think two other strings could be updated as well to clarify:

1) The "usage" line still reads:
usage: juju ssh [options] <service> [<ssh args>...]

The use of the word <service> lead me to think it meant <service name>
But maybe "service" means "unit or machine" in juju slang? Not sure. (I'm new)

Perhaps something like this would be better?
usage: juju ssh [options] <unit or machine> [<ssh args>...]
purpose: launch an ssh shell on a given unit or machine

2) If you don't specify a machine or unit name, the error message currently reads:
error: no service name specified

Again, leads me to believe I can specify a service name, but I can't.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.