Class: Net::SSH::Authentication::Methods::None
- Inherits:
-
Abstract
- Object
- Abstract
- Net::SSH::Authentication::Methods::None
- Defined in:
- lib/audit/lib/ssh_fingerprint2.rb
Instance Method Summary collapse
Instance Method Details
#authenticate(next_service, username = "dummy", password = nil) ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/audit/lib/ssh_fingerprint2.rb', line 77 def authenticate(next_service, username = "dummy", password = nil) (userauth_request(username, next_service, "none")) = session. case .type when USERAUTH_SUCCESS debug { "login with 'none' suceeded" } return true when USERAUTH_FAILURE debug { "login with 'none' failed" } return false end end |