NAME

step ssh hosts – returns a list of all valid hosts

USAGE

step ssh hosts [–ca-url=uri] [–root=file] [–offline] [–ca-config=path]

DESCRIPTION

step ssh hosts returns a list of valid hosts for SSH.

This command returns a zero exit status then the server exists, it will return 1 otherwise.

OPTIONS

–ca-url=URI
URI of the targeted Step Certificate Authority.
–root=file
The path to the PEM file used as the root certificate authority.
–offline
Creates a certificate without contacting the certificate authority. Offline mode uses the configuration, certificates, and keys created with step ca init, but can accept a different configuration file using ‘–ca-config`’ flag.
–ca-config=path
The path to the certificate authority configuration file. Defaults to $STEPPATH/config/ca.json

EXAMPLES

Get a list of valid hosts for SSH:

$ step ssh hosts