summaryrefslogtreecommitdiff
path: root/lib/net/ssh/authentication/session.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/ssh/authentication/session.rb')
-rw-r--r--lib/net/ssh/authentication/session.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/net/ssh/authentication/session.rb b/lib/net/ssh/authentication/session.rb
index 95f4d95..4451cde 100644
--- a/lib/net/ssh/authentication/session.rb
+++ b/lib/net/ssh/authentication/session.rb
@@ -11,7 +11,6 @@ require 'net/ssh/authentication/methods/keyboard_interactive'
module Net
module SSH
module Authentication
-
# Raised if the current authentication method is not allowed
class DisallowedMethod < Net::SSH::Exception
end
@@ -71,6 +70,7 @@ module Net
@auth_methods.each do |name|
next unless @allowed_auth_methods.include?(name)
+
attempted << name
debug { "trying #{name}" }
@@ -127,6 +127,7 @@ module Net
def expect_message(type)
message = next_message
raise Net::SSH::Exception, "expected #{type}, got #{message.type} (#{message})" unless message.type == type
+
message
end