juju import-ssh-key [options] <lp|gh>:<user identity> ...
Adds a public SSH key from a trusted identity source to a model.
--debug (= false)
Equivalent to --show-log --logging-config==DEBUG
-h, --help (= false)
Show help on a command or other topic.
--logging-config (= "")
Specify log levels for modules
--quiet (= false)
Show no informational output
--show-log (= false)
If set, write the log file to stderr
--verbose (= false)
Show more verbose output
-B, --no-browser-login (= false)
Do not use web browser for authentication
-m, --model (= "")
Model to operate in. Accepts [:]|
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
command, where comments will indicate which ones were imported in
An alternative to this command is the more manual
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 gh:rheinlein lp:iasmiov gh:hharrison