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.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/net/ssh/authentication/session.rb b/lib/net/ssh/authentication/session.rb
index e4fc648..773d704 100644
--- a/lib/net/ssh/authentication/session.rb
+++ b/lib/net/ssh/authentication/session.rb
@@ -76,7 +76,9 @@ module Net
debug { "trying #{name}" }
begin
auth_class = Methods.const_get(name.split(/\W+/).map { |p| p.capitalize }.join)
- method = auth_class.new(self, key_manager: key_manager, password_prompt: options[:password_prompt])
+ method = auth_class.new(self,
+ key_manager: key_manager, password_prompt: options[:password_prompt],
+ pubkey_algorithms: options[:pubkey_algorithms] || nil)
rescue NameError
debug {"Mechanism #{name} was requested, but isn't a known type. Ignoring it."}
next