-
-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
correctly parse "+" in config files #314
Labels
Comments
Can you please add a :verbose=>:debug and post log? |
Yep, here you go.
|
The issue is that we don't understand the "+" in HostkeyAlgorithms |
mfazekas
changed the title
Net::SSH::Exception: could not settle on host_key algorithm
correctly parse "+" in config files
Mar 18, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running the following with "HostkeyAlgorithms +ssh-dss" set in ~/.ssh/config will result in a "Net::SSH::Exception: could not settle on host_key algorithm" error when connecting to an ubuntu14.04 instance (haven't tested against any other nodes).
Net::SSH.start('1.2.3.4', 'ubuntu', {:timeout=>10, :auth_methods=>["publickey"], :keys_only=>true, :host_key_alias=>"host_key_alias", :key_data=> ["ssh_private_key"]})
This is only an issue with net-ssh version 3.0.2, when using 2.9.2 or using OpenSSH I am able to connect without issue. Removing the "HostkeyAlgorithms +ssh-dss" from my ssh config also fixes the issue as long as you are using a rsa key, dss is deprecated on newer versions of OpenSSH which makes this line necessary in some cases.
The text was updated successfully, but these errors were encountered: