summaryrefslogtreecommitdiff
path: root/lib/net/ssh/authentication/session.rb
diff options
context:
space:
mode:
authorZdenek Zambersky <zzambers@redhat.com>2021-05-06 13:50:20 +0200
committerFlorian Wininger <fw.centrale@gmail.com>2021-10-25 15:59:19 +0200
commit91254c72586179469ee59e4b0bd1d54960ce8d88 (patch)
tree2a2b52c5bf7ac31804d1d6f018a4b5ddf805ca79 /lib/net/ssh/authentication/session.rb
parent0150d054f0cd0beacd4ba1000c6df6d8636a2c18 (diff)
downloadnet-ssh-rsa-sha2.tar.gz
Added support for RSA client authentication with SHA-2rsa-sha2
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