You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to connect to a server via a ECDSA ssh key
Actual behavior
When using an ecdsa key Ive generated I can ssh to my test server without problem, but the snippet of code below fails using the same key & user. When I use an rsa key and connect to the same server the code works.
/opt/ruby/3.1.0/openssl/pkey.rb:254:in `rescue in dsa_sign_asn1': EVP_PKEY_sign: passed a null parameter (OpenSSL::PKey::ECError)
from /opt/ruby/3.1.0/openssl/pkey.rb:251:in `dsa_sign_asn1'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/transport/openssl.rb:246:in `ssh_do_sign'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/key_manager.rb:174:in `sign'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/methods/publickey.rb:60:in `authenticate_with_alg'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/methods/publickey.rb:126:in `authenticate_with'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/methods/publickey.rb:19:in `block in authenticate'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/key_manager.rb:131:in `block in each_identity'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/key_manager.rb:128:in `each'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/key_manager.rb:128:in `each_identity'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/methods/publickey.rb:18:in `authenticate'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/session.rb:87:in `block in authenticate'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/session.rb:71:in `each'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh/authentication/session.rb:71:in `authenticate'
from /opt/ruby/gems/3.1.0/gems/net-ssh-7.0.1/lib/net/ssh.rb:254:in `start'
from ./try-ecdsa-connect.rb:9:in `<main>'
The text was updated successfully, but these errors were encountered:
Expected behavior
To be able to connect to a server via a ECDSA ssh key
Actual behavior
When using an ecdsa key Ive generated I can ssh to my test server without problem, but the snippet of code below fails using the same key & user. When I use an rsa key and connect to the same server the code works.
System configuration
Example App
Error:
The text was updated successfully, but these errors were encountered: