Skip to main content

List

List SSH authorized keys.

The output does not show hosts without authorized keys. It shows skipped hosts, for example unsupported platforms, with their error.

osapi client node user ssh-key list

Examples​

osapi client node user ssh-key list --target web-01 --name deploy
osapi client node user ssh-key list --target _all --name deploy
osapi client node user ssh-key list --target web-01 --name deploy --json

Flags​

FlagDescriptionDefault
--nameUsername to list SSH keys for (required)

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml
-T, --targetTarget: _all, _any, hostname, or label (group:web.dev)_all
--urlURL the client will connect tohttp://0.0.0.0:8080

Output tells how the result is printed, and what --json gives.