This commit is contained in:
John Lancaster
2026-01-04 11:22:01 -06:00
parent 20ca89d452
commit 04d52d0017

View File

@@ -132,14 +132,13 @@ check_ssh_files() {
ssh_fingerprint() {
local field="$1"
local ca_path
if [[ -z "$field" ]]; then
echo "usage: ssh_fingerprint <trusteduserca|hostcertificate|...>" >&2
echo "usage: ssh_fingerprint <field>" >&2
return 2
fi
cfg_path=$(ssh_config_val $field)
local cfg_path=$(ssh_config_val $field)
if [[ -z "$cfg_path" ]]; then
echo "error: sshd field '$field' not found or empty" >&2