hostedpi ssh keys import
Import SSH keys from GitHub and/or Launchpad to one or more Raspberry Pi servers
Usage: hostedpi ssh keys import [OPTIONS] [NAMES]...
Arguments
- names [str ...]
Names of the Raspberry Pi server to import SSH keys to
Options
- --filter [str]
Search pattern for filtering server names
- --github, --gh [str] [repeatable]
A GitHub username to source SSH keys from
Can be provided multiple times
- --launchpad, --lp [str] [repeatable]
A Launchpad username to source SSH keys from
Can be provided multiple times
- --help
Show this message and exit
Usage
Import keys from GitHub onto a Pi:
$ hostedpi ssh keys import mypi --gh bennuttall
Imported 4 keys to mypi
Import keys from GitHub onto multiple Pis:
$ hostedpi ssh keys import mypi mypi2 --gh bennuttall
Imported 4 keys to mypi
No new keys imported to mypi2
Import keys from GitHub and Launchpad onto a Pi:
$ hostedpi ssh keys import mypi --gh bennuttall --lp bennuttall
Imported 4 keys to mypi
Import keys from GitHub onto multiple Pis:
$ hostedpi ssh keys import mypi mypi2 --gh bennuttall
Imported 4 keys to mypi
No new keys imported to mypi2
Import keys from GitHub and Launchpad onto multiple Pis matching a filter:
$ hostedpi ssh keys import --filter mypi --gh bennuttall --lp bennuttall
Imported 4 keys to mypi
No new keys imported to mypi2
No new keys imported to mypi3
Imported 2 keys to mypi4
Note
Keys are counted before and after addition, and de-duplicated, so if a key is already found on the Pi, it will show as not having been added, as above.