hostedpi ssh-config¶
Output the SSH config for one or more Pis in the account
Synopsis¶
hostedpi ssh-config [-h] [--ipv6] [names [names ...]]
Description¶
-
names
[names ...]
¶ The name of the Pis to add keys to
-
-h
,
--help
¶
Show this help message and exit
-
--ipv6
¶
Use IPv6 connection details
Usage¶
Output the IPv4 SSH config for a Pi:
$ hostedpi ssh-config mypi
Host mypi
user root
port 5224
hostname ssh.mypi.hostedpi.com
Output the IPv6 SSH config for a Pi:
$ hostedpi ssh-config mypi --ipv6
Host mypi
user root
hostname 2a00:1098:8:5b::1
Output the IPv4 SSH config for multiple Pis:
$ hostedpi ssh-config mypi mypi2
Host mypi
user root
port 5224
hostname ssh.mypi.hostedpi.com
Host mypi2
user root
port 5072
hostname ssh.mypi2.hostedpi.com
Note
If no names of Pis are given, the SSH commands will be shown for all Pis in the account
Save (append) the IPv4 SSH config for all Pis in the account into your SSH config file:
$ hostedpi ssh-config >> ~/.ssh/config
Note
Read more about the SSH config file: https://www.ssh.com/ssh/config/