summaryrefslogtreecommitdiff
path: root/test/authentication/test_session.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/authentication/test_session.rb')
-rw-r--r--test/authentication/test_session.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/authentication/test_session.rb b/test/authentication/test_session.rb
index 0f73a97..4f1d482 100644
--- a/test/authentication/test_session.rb
+++ b/test/authentication/test_session.rb
@@ -168,7 +168,9 @@ module Authentication
private
def session(options = {})
- @session ||= Net::SSH::Authentication::Session.new(transport(options), options)
+ session_opts = options.clone
+ session_opts[:pubkey_algorithms] = %w[ssh-rsa]
+ @session ||= Net::SSH::Authentication::Session.new(transport(options), session_opts)
end
def transport(options = {})