SSH-FACTS(1) User Commands SSH-FACTS(1)

ssh-facts - get some facts about the remote system

Usage: ssh-facts [user@]hostname
For further processing of the data you can use standard shell tools like awk, grep, sed or convert it to JSON with 'jo' (command-line processor to output JSON from a shell) and feed it to 'jq' (lightweight and flexible command-line JSON processor)
ssh-facts | grep ^OS_VERSION | awk -F'=' '{ print $2 }'
ssh-facts | jo -p
ssh-facts | jo | jq
ssh-facts | jo | jq .OS_VERSION
February 2022 SSH-TOOLS