hostedpi ssh keys copy

Copy the SSH keys from one Raspberry Pi server to others

Usage: hostedpi ssh keys copy [OPTIONS] SRC DESTS...

Arguments

src [str] [required]

Name of the Raspberry Pi server to copy SSH keys from

dests [str ...] [required]

Names of the Raspberry Pi servers to copy SSH keys to

Options

--help

Show this message and exit

Alias

hostedpi ssh keys cp

Usage

Copy the keys from one Pi to another:

$ hostedpi ssh keys copy mypi mypi2
Copied 2 keys from mypi to mypi2

Copy the keys from one Pi to several others:

$ hostedpi ssh keys copy mypi mypi2 mypi3 mypi4
Copied 2 keys from mypi to mypi2
No new keys copied from mypi to mypi3
Copied 1 key from mypi 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.