diff options
author | Zdenek Zambersky <zzambers@redhat.com> | 2021-05-06 13:50:20 +0200 |
---|---|---|
committer | Florian Wininger <fw.centrale@gmail.com> | 2021-10-25 15:59:19 +0200 |
commit | 91254c72586179469ee59e4b0bd1d54960ce8d88 (patch) | |
tree | 2a2b52c5bf7ac31804d1d6f018a4b5ddf805ca79 /lib/net/ssh/authentication/methods/abstract.rb | |
parent | 0150d054f0cd0beacd4ba1000c6df6d8636a2c18 (diff) | |
download | net-ssh-rsa-sha2.tar.gz |
Added support for RSA client authentication with SHA-2rsa-sha2
Diffstat (limited to 'lib/net/ssh/authentication/methods/abstract.rb')
-rw-r--r-- | lib/net/ssh/authentication/methods/abstract.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/net/ssh/authentication/methods/abstract.rb b/lib/net/ssh/authentication/methods/abstract.rb index 07aa5f3..f023011 100644 --- a/lib/net/ssh/authentication/methods/abstract.rb +++ b/lib/net/ssh/authentication/methods/abstract.rb @@ -20,12 +20,22 @@ module Net # this. attr_reader :key_manager + # So far only affects algorithms used for rsa keys, but can be + # extended to other keys, e.g after reading of + # PubkeyAcceptedAlgorithms option from ssh_config file is implemented. + attr_reader :pubkey_algorithms + # Instantiates a new authentication method. def initialize(session, options = {}) @session = session @key_manager = options[:key_manager] @options = options @prompt = options[:password_prompt] + @pubkey_algorithms = options[:pubkey_algorithms] \ + || %w[rsa-sha2-256-cert-v01@openssh.com + ssh-rsa-cert-v01@openssh.com + rsa-sha2-256 + ssh-rsa] self.logger = session.logger end |