help text for juju import-ssh-key needs improving

Bug #1554700 reported by Nick Veitch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Reed O'Brien

Bug Description

e.g:

Usage: juju import-ssh-key [options] <lp|gh>:<user identity> ...

Summary:
Adds a public SSH key from a trusted identity source to a model.

Options:

-m, --model (= "")
  Model to operate in

Details:
Juju can add SSH keys to its cache from reliable public sources (currently Launchpad and GitHub), allowing those users SSH access to Juju machines. The user identity supplied is the username on the respective service given by 'lp:' or 'gh:'.
If the user has multiple keys on the service, all the keys will be added.
Once the keys are imported, they can be viewed with the `juju list-ssh-keys` command, where comments will indicate which ones were imported in this way.
An alternative to this command is the more manual `juju add-ssh-key`.

Examples:

Import all public keys associated with user account 'phamilton' on the GitHub service:

    juju import-ssh-key gh:phamilton

Multiple identities may be specified in a space delimited list:

    juju import-ssh-key rheinlein lp:iasmiov gh:hharrison

See also: add-ssh-key
          list-ssh-keys

Nick Veitch (evilnick)
tags: added: helpdocs
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.0-beta4
tags: added: juju-release-support
summary: - help text for juju import-ssh-keys needs improving
+ help text for juju import-ssh-key needs improving
description: updated
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Cheryl Jennings (cherylj)
Revision history for this message
Cheryl Jennings (cherylj) wrote :
Revision history for this message
Tim Penhey (thumper) wrote :

I seriously think we should not allow a name without a prefix.

That way lies absolute crazy and security issues.

Revision history for this message
Cheryl Jennings (cherylj) wrote :

We can open a bug against the command to fix not requiring a prefix. In the meantime, should we update the doc to indicate that a prefix should always be used?

description: updated
Changed in juju-core:
milestone: 2.0-beta4 → 2.0-rc1
Changed in juju-core:
assignee: Cheryl Jennings (cherylj) → Reed O'Brien (reedobrien)
Revision history for this message
Reed O'Brien (reedobrien) wrote :

Output:

Usage: juju import-ssh-key [options] <lp|gh>:<user identity> ...

Summary:
Adds a public SSH key from a trusted identity source to a model.

Options:
-m, --model (= "")
    Model to operate in

Details:
Juju can add SSH keys to its cache from reliable public sources (currently
Launchpad and GitHub), allowing those users SSH access to Juju machines.
The user identity supplied is the username on the respective service given
by 'lp:' or 'gh:'.
If the user has multiple keys on the service, all the keys will be added.
Once the keys are imported, they can be viewed with the `juju list-ssh-
keys` command, where comments will indicate which ones were imported in
this way.
An alternative to this command is the more manual `juju add-ssh-key`.

Examples:
Import all public keys associated with user account 'phamilton' on the
GitHub service:

    juju import-ssh-key gh:phamilton

Multiple identities may be specified in a space delimited list:

    juju import-ssh-key rheinlein lp:iasmiov gh:hharrison

See also:
    add-ssh-key
    list-ssh-keys

Aliases: import-ssh-keys

Revision history for this message
Reed O'Brien (reedobrien) wrote :
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta5 → none
milestone: none → 2.0-beta5
Revision history for this message
Horacio Durán (hduran-8) wrote :
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.