LoginSignup
1
0

More than 5 years have passed since last update.

werckerで急にHost key verification failed. になったのでメモ

Posted at

先日まで問題なく通ってたのになぜかfailedになってしまったので、さくっと対応。

Host key verification failed.
fatal: Could not read from remote repository.

原因

wercker.yml
    - add-to-known_hosts:
      hostname: bitbucket.org
      fingerprint: 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40

上記部分の処理の際に

Searching for keys that match fingerprint 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
Skipped adding a key to known_hosts, it did not match the fingerprint (35:ee:d7:b8:ef:d7:79:e2:c6:43:9e:ab:40:6f:50:74)
Added a key to /etc/ssh/ssh_known_hosts

今まではこんなログが吐かれてましたが

Searching for keys that match fingerprint 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
Skipped adding a key to known_hosts, it did not match the fingerprint (SHA256:RezPkAnH1sowiJM0NQXH90IohWdzHc3fAisEp7L3O3o)
Skipped adding a key to known_hosts, it did not match the fingerprint (SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A)

こんな感じに変わってたので、下記対応でMD5からSHA256に変更して解決

wercker.yml
    - add-to-known_hosts:
      hostname: bitbucket.org
      fingerprint: zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A
      type: rsa <--- ついでだし追加しておいた
Searching for keys that match fingerprint zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A
Added a key to /etc/ssh/ssh_known_hosts
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0