Comment 0 for bug 1554700

Revision history for this message
Nick Veitch (evilnick) wrote : help text for juju import-ssh-keys needs improving

e.g:

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

Summary:
Imports an SSH key from a trusted identity source (Launchpad, Github).

Options:

-m, --model (= "")
  Juju 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 should be the username on the respective service, preferably prefixed by 'lp:' or 'gh:' to avoid confusion/conflicts.
Note that if the user has multiple keys on the service, all the associated keys will be added.
Once the keys are added, they can be viewed as normal with the `juju list-ssh-keys` command, where comments will indicate which ones were imported this way.

Examples:

    juju import-ssh-key lazypower

To specify the service, use a 'gh:' or 'lp:' prefix:

    juju import-ssh-key gh:cherylj

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