hostedpi ssh-config

Output the SSH config for one or more Pis in the account

positional arguments:
  names       The names of the Pis to get SSH config for

optional arguments:
  -h, --help  show this help message and exit
  --ipv6      Show IPv6 command

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/