Skip to content

Upgrading 1.10.0 to 1.11.1 breaks connecting to new hosts. #362

@xavierholt

Description

@xavierholt

Upgraded SSHKit this morning and found that I could no longer connect to hosts that were not in my ~/.ssh/known_hosts file. I could downgrade and connect then upgrade again, and connecting worked just fine.

[kevin.burk@KBURK-02 argus]$ bundle update | grep sshkit
Using sshkit 1.11.1
[kevin.burk@KBURK-02 argus]$ bundle exec rake k8sdev uruk run cmd="uptime"
INFO   [28c16682] Running /usr/bin/env uptime on 10.52.186.21
DEBUG  [28c16682] Command: /usr/bin/env uptime
INFO   [e4ed48aa] Running /usr/bin/env uptime on 10.52.186.22
DEBUG  [e4ed48aa] Command: /usr/bin/env uptime
INFO   [a8d5f190] Running /usr/bin/env uptime on 10.52.186.23
DEBUG  [a8d5f190] Command: /usr/bin/env uptime
rake aborted!
Net::SSH::HostKeyMismatch: fingerprint 41:31:33:63:66:9d:34:a9:de:35:f2:4d:03:ee:4d:b4 does not match for "10.52.186.21,127.0.0.1"
/Users/kevin.burk/Code/argus/lib/tasks/helpers.rb:40:in `block (3 levels) in <top (required)>'
Tasks: TOP => run
(See full trace by running task with --trace)
[kevin.burk@KBURK-02 argus]$ vim Gemfile
[kevin.burk@KBURK-02 argus]$ bundle update | grep sshkit
Using sshkit 1.10.0 (was 1.11.1)
[kevin.burk@KBURK-02 argus]$ bundle exec rake k8sdev uruk run cmd="uptime"
INFO   [7178e030] Running /usr/bin/env uptime on 10.52.186.23
DEBUG  [7178e030] Command: /usr/bin/env uptime
INFO   [5dfe4842] Running /usr/bin/env uptime on 10.52.186.22
DEBUG  [5dfe4842] Command: /usr/bin/env uptime
INFO   [c8d074b0] Running /usr/bin/env uptime on 10.52.186.21
DEBUG  [c8d074b0] Command: /usr/bin/env uptime
DEBUG  [7178e030]    19:57:56 up  1:37,  0 users,  load average: 0.02, 0.05, 0.05
INFO   [7178e030] Finished in 0.508 seconds with exit status 0 (successful).
DEBUG  [5dfe4842]    19:57:56 up  1:37,  0 users,  load average: 0.08, 0.08, 0.06
INFO   [5dfe4842] Finished in 0.561 seconds with exit status 0 (successful).
DEBUG  [c8d074b0]    19:57:56 up  1:37,  0 users,  load average: 0.00, 0.01, 0.05
INFO   [c8d074b0] Finished in 0.591 seconds with exit status 0 (successful).
[kevin.burk@KBURK-02 argus]$ vim Gemfile
[kevin.burk@KBURK-02 argus]$ bundle update | grep sshkit
Using sshkit 1.11.1 (was 1.10.0)
[kevin.burk@KBURK-02 argus]$ bundle exec rake k8sdev uruk run cmd="uptime"
INFO   [2296d57f] Running /usr/bin/env uptime on 10.52.186.21
DEBUG  [2296d57f] Command: /usr/bin/env uptime
INFO   [597c3be7] Running /usr/bin/env uptime on 10.52.186.22
DEBUG  [597c3be7] Command: /usr/bin/env uptime
INFO   [15b8bf36] Running /usr/bin/env uptime on 10.52.186.23
DEBUG  [15b8bf36] Command: /usr/bin/env uptime
DEBUG  [597c3be7]    19:58:14 up  1:37,  0 users,  load average: 0.12, 0.09, 0.06
INFO   [597c3be7] Finished in 0.476 seconds with exit status 0 (successful).
DEBUG  [2296d57f]    19:58:14 up  1:37,  0 users,  load average: 0.00, 0.01, 0.05
INFO   [2296d57f] Finished in 0.524 seconds with exit status 0 (successful).
DEBUG  [15b8bf36]    19:58:14 up  1:37,  0 users,  load average: 0.01, 0.04, 0.05
INFO   [15b8bf36] Finished in 0.518 seconds with exit status 0 (successful).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions