# File lib/knife-solo/ssh_command.rb, line 191 def detect_authentication_method return @detected if @detected begin try_connection rescue Errno::ETIMEDOUT raise "Unable to connect to #{host}" rescue Net::SSH::AuthenticationFailed # Ensure the password is set or ask for it immediately password end @detected = true end