Skip to content
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

Net::SSH::HostKeyMismatch with cert based host auth #10

Open
thomas-merz opened this issue Mar 2, 2023 · 4 comments
Open

Net::SSH::HostKeyMismatch with cert based host auth #10

thomas-merz opened this issue Mar 2, 2023 · 4 comments

Comments

@thomas-merz
Copy link

/Users/Thomas.Merz/.rvm/gems/ruby-2.7.6/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/pending_connection.rb:29:in `replay_on': undefined method `open_channel' for nil:NilClass (NoMethodError)
error connecting to admin@example.com: Net::SSH::HostKeyMismatch (fingerprint SHA256:xxxxx does not match for "example.com,172.12.34.56")

This has already been fixed in net-ssh/net-ssh#613 but hammer host ssh doesn't honor this fix from August 2021 because there has been no updated build since April 2015. So please check this out and give us a newer version on https://rubygems.org/gems/hammer_cli_foreman_ssh

@thomas-merz
Copy link
Author

Hey @dgoetz , can you help to give us Foremen a newer hammer version that doesn't have this issue, so that one can use it anymore because it's broken with more and more hosts over time 😞

@dgoetz
Copy link
Member

dgoetz commented Apr 19, 2024

No, this needs a new gem release. @ofedoren seems to be the only still active Foreman developer who contributed here, so I hope he can do a gem release, then I will pick it up for packaging on all supported versions.

@ekohl
Copy link
Member

ekohl commented Apr 23, 2024

@thomas-merz a new release of this gem won't solve it.

Stack trace wise it points to:
https://github.com/net-ssh/net-ssh-multi/blob/f4c787ef3770f5218fefcb3c21091de13205ede8/lib/net/ssh/multi/pending_connection.rb#L29

So somehow session is nil there. This could very well be a bug in net-ssh-multi, but it's hard to say.

https://github.com/net-ssh/net-ssh-multi doesn't look maintained, so that could be a problem.

@thomas-merz
Copy link
Author

Uh, yes, I can see my very old issue from 2022 over there 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants