updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user