row_process

This commit is contained in:
John Lancaster
2026-01-04 10:18:50 -06:00
parent 44174c8c6b
commit a26c71c092

View File

@@ -44,9 +44,16 @@ check_ssh_files() {
printf "%-17b %-20s %-6s %s\n" " $RED_X" "$key" "-" "(not configured)" printf "%-17b %-20s %-6s %s\n" " $RED_X" "$key" "-" "(not configured)"
} }
printf "%-6s %-20s %-6s %s\n" "STATUS" "KEY" "PERMS" "PATH" row_process() {
for key in hostkey hostcertificate trustedusercakeys; do local key="$1"
if [[ -z "$key" ]]; then
echo "usage: row_process <key>" >&2
return 2
fi
path=$(ssh_config_val "$key") path=$(ssh_config_val "$key")
if [[ -z "$path" ]]; then if [[ -z "$path" ]]; then
row_unconfigured $key row_unconfigured $key
continue continue
@@ -57,7 +64,12 @@ check_ssh_files() {
else else
row_fail $key $path row_fail $key $path
fi fi
done }
printf "%-6s %-20s %-6s %s\n" "STATUS" "KEY" "PERMS" "PATH"
row_process "hostkey"
row_process "hostcertificate"
row_process "trustedusercakeys"
} }
ssh_fingerprint() { ssh_fingerprint() {