diff --git a/lib/ssh/key/verifier.rb b/lib/ssh/key/verifier.rb index f2b52be..498630f 100644 --- a/lib/ssh/key/verifier.rb +++ b/lib/ssh/key/verifier.rb @@ -144,7 +144,7 @@ def find_authorized_keys_file authorized_keys_file = ".ssh/authorized_keys" # Try to find the AuthorizedKeysFile definition in the config. - if File.exists?(@sshd_config_file) + if File.exist?(@sshd_config_file) begin authorized_keys_file = File.new(@sshd_config_file).grep(/^\s*AuthorizedKeysFile/)[-1].split(" ")[-1] rescue @@ -191,7 +191,7 @@ def authorized_keys return [] end - if !File.exists?(authorized_keys_file) + if !File.exist?(authorized_keys_file) @logger.info("User '#{@account}' has no authorized keys file '#{authorized_keys_file}'") return [] end