Skip to content

Commit

Permalink
Fix net-ssh lib now requiring ssh key type
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanusz-r7 committed Dec 12, 2023
1 parent d93e1fb commit a7a9a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/ssh/pubkey_verifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def verify

# The initial public key exchange
pubkey_method = Net::SSH::Authentication::Methods::Publickey.new(auth)
pubkey_method.send(:send_request, key,user, "ssh-connection")
pubkey_method.send(:send_request, key, user, key.ssh_type, "ssh-connection")

# Check the response to see if the public key is good
response_message = auth.next_message
Expand Down

0 comments on commit a7a9a05

Please sign in to comment.