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